fix: refs #7213 problem rounding #2903
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2903
Loading…
Reference in New Issue
No description provided.
Delete Branch "7213-Sale_setProblemRoundingByBuy"
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?
@ -0,0 +4,4 @@
)
BEGIN
/**
* Update rounding problem for all sales related to a buy
@ -0,0 +18,4 @@
SELECT b.itemFk, t.warehouseInFk
INTO vItemFk, vWareHouseFk
FROM vn.buy b
No utilizar
vn.
@ -0,0 +54,4 @@
END WHILE;
CREATE OR REPLACE TEMPORARY TABLE tmp.sale
(INDEX(saleFk, isProblemCalcNeeded))
ENGINE = MEMORY
@ -0,0 +55,4 @@
CREATE OR REPLACE TEMPORARY TABLE tmp.sale
(INDEX(saleFk, isProblemCalcNeeded))
SELECT s.id saleFk ,
espacio entre el alias y la ,
@ -0,0 +62,4 @@
JOIN ticket t ON t.id = s.ticketFk
WHERE s.itemFk = vItemFk
AND s.quantity > 0
AND t.shipped BETWEEN vMinDated
Per que no fiques aço en una linea? No he vist ningún lloc aon no se fique el BETWEEN seguit
@ -0,0 +27,4 @@
INTO vMaxDated, vMinDated
FROM sale s
JOIN ticket t ON t.id = s.ticketFk
WHERE t.shipped >= CURDATE()
util.VN_CURDATE()