From 893cca52cc2249e7ab8eebc0ce4730db2f32d2fd Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 15 Mar 2021 11:49:35 +0100 Subject: [PATCH] Changes --- print/methods/closure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print/methods/closure.js b/print/methods/closure.js index b7c2ac566..dc2fb4cac 100644 --- a/print/methods/closure.js +++ b/print/methods/closure.js @@ -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%'`, {