feat: refs #6321 sql lackDetail step3

This commit is contained in:
Javier Segarra 2025-02-06 10:31:43 +01:00
parent e736c95fb6
commit 3dd64e4257
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ module.exports = Self => {
WHERE ot.code = 'substitution'
GROUP BY co.clientFk
) substitution ON substitution.clientFk = c.id
WHERE r.shipment BETWEEN util.VN_CURDATE() AND DATE_ADD(util.VN_CURDATE(), INTERVAL ? DAY)
WHERE r.shipment BETWEEN ? AND ? + INTERVAL ? DAY
AND r.created >= ?
AND r.warehouseFk = ?
AND NOT o.confirmed
@ -146,7 +146,7 @@ module.exports = Self => {
scopeDays,
filter.where.alertLevelCode,
scopeDays,
vDated,
vDated, vDated, vDated,
filter.where.warehouseFk,
itemFk
]);