fix: refs #7812 Added orders in item_getMinacum #2810
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2810
Loading…
Reference in New Issue
No description provided.
Delete Branch "7812-radarOrder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -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.
todos
@ -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
NOT
@ -61,3 +64,3 @@
AND b.quantity != 0
AND b.quantity <> 0
AND (vItemFk IS NULL OR b.itemFk = vItemFk)
AND !e.isRaid
NOT
@ -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
Eliminar esquema vn
@ -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)
util.VN_NOW() - INTERVAL TIME_TO_SEC(reserveTime) SECOND
per estandaritzar, deuriem de guardar reserveTime en INT y canviar el SECOND per MINUTE=
@ -76,3 +94,3 @@
i.quantity amount
FROM tmp.itemAtp i
HAVING amount != 0;
HAVING amount <> 0;
No es necessari HAVING millor WHERE ¿?
fix: refs #7821 Added orders in item_getMinacumto fix: refs #7812 Added orders in item_getMinacum