Changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-15 11:49:35 +01:00
parent 060fc2ac21
commit 893cca52cc
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ module.exports = app => {
JOIN deliveryMethod dm ON dm.id = am.deliveryMethodFk
JOIN zone z ON z.id = t.zoneFk
SET t.routeFk = NULL
WHERE shipped BETWEEN DATE_ADD(:to, INTERVAL -2 DAY) AND util.dayEnd(:to)
WHERE DATE(t.shipped) BETWEEN DATE_ADD(:to, INTERVAL -2 DAY) AND :to
AND al.code NOT IN('DELIVERED','PACKED')
AND t.routeFk
AND z.name LIKE '%MADRID%'`, {