fix: refs #7812 Added orders in item_getMinacum #2810

Merged
guillermo merged 3 commits from 7812-radarOrder into master 2024-08-02 10:01:57 +00:00
Member
No description provided.
guillermo added 1 commit 2024-07-30 12:18:06 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
4ef57e6869
fix: refs #7821 Added orders in item_getMinacum
guillermo requested review from carlosap 2024-07-30 12:18:35 +00:00
guillermo added 1 commit 2024-07-30 12:19:07 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
961d05ab35
fix: refs #7821 Added orders in item_getMinacum
carlosap requested changes 2024-07-30 16:50:45 +00:00
Dismissed
@ -5,2 +10,2 @@
* Cálculo del mínimo acumulado, para un item/almacén especificado, en caso de
* NULL para todo.
* Cálculo del mínimo acumulado, para un item/almacén
* especificado, en caso de NULL para todo.
Member

todos

todos
guillermo marked this conversation as resolved
@ -45,3 +48,3 @@
WHERE t.landed BETWEEN vDatedFrom AND vDatedTo
WHERE t.landed BETWEEN vDated AND vDatedTo
AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
AND !e.isExcludedFromAvailable
Member

NOT

NOT
guillermo marked this conversation as resolved
@ -61,3 +64,3 @@
AND b.quantity != 0
AND b.quantity <> 0
AND (vItemFk IS NULL OR b.itemFk = vItemFk)
AND !e.isRaid
Member

NOT

NOT
guillermo marked this conversation as resolved
@ -64,0 +71,4 @@
r.warehouseFk
FROM hedera.orderRow r
JOIN hedera.`order` o ON o.id = r.orderFk
JOIN vn.client c ON c.id = o.customer_id
Member

Eliminar esquema vn

Eliminar esquema vn
guillermo marked this conversation as resolved
@ -64,0 +75,4 @@
WHERE r.shipment BETWEEN vDated AND vDatedTo
AND (vWarehouseFk IS NULL OR r.warehouseFk = vWarehouseFk)
AND r.created >= (
SELECT SUBTIME(util.VN_NOW(), reserveTime)
Member

util.VN_NOW() - INTERVAL TIME_TO_SEC(reserveTime) SECOND

per estandaritzar, deuriem de guardar reserveTime en INT y canviar el SECOND per MINUTE=

util.VN_NOW() - INTERVAL TIME_TO_SEC(reserveTime) SECOND per estandaritzar, deuriem de guardar reserveTime en INT y canviar el SECOND per MINUTE=
guillermo marked this conversation as resolved
@ -76,3 +94,3 @@
i.quantity amount
FROM tmp.itemAtp i
HAVING amount != 0;
HAVING amount <> 0;
Member

No es necessari HAVING millor WHERE ¿?

No es necessari HAVING millor WHERE ¿?
guillermo marked this conversation as resolved
guillermo changed title from fix: refs #7821 Added orders in item_getMinacum to fix: refs #7812 Added orders in item_getMinacum 2024-07-31 07:21:39 +00:00
guillermo added 1 commit 2024-07-31 07:26:59 +00:00
gitea/salix/pipeline/pr-master This commit looks good Details
cc78355aad
fix: refs #7821 Requested changes
guillermo requested review from carlosap 2024-07-31 07:27:01 +00:00
carlosap approved these changes 2024-07-31 10:26:54 +00:00
guillermo merged commit dead585a1b into master 2024-08-02 10:01:57 +00:00
guillermo deleted branch 7812-radarOrder 2024-08-02 10:01:57 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#2810
No description provided.