fix: refs #7404 restore stockBuyed old proc #3183
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3183
Loading…
Reference in New Issue
No description provided.
Delete Branch "7404-recoverStockBuyedProcs"
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 +27,4 @@
INSERT INTO stockBuyed(userFk, buyed, `dated`, reserved, requested, description)
SELECT it.workerFk,
SUM((ti.quantity / b.packing) * buy_getVolume(b.id)) / vc.palletM3 / 1000000,
sum sense gropu by?
@ -0,0 +34,4 @@
u.name
FROM itemType it
JOIN item i ON i.typeFk = it.id
LEFT JOIN tmp.item ti ON ti.itemFk = i.id
si bases el calcul en la ti.quantity, sino hi ha tmp.item no tindria sentit, per tant, es posible que ací necesites un JOIN. sense left
@ -0,0 +52,4 @@
ti.quantity Cantidad,
(ac.conversionCoefficient * (ti.quantity / b.packing) * buy_getVolume(b.id))
/ (vc.trolleyM3 * 1000000) buyed,
b.packagingFk id_cubo,
castellà no.