#7884 added new filter field #2981
|
@ -229,19 +229,19 @@ module.exports = Self => {
|
|||
|
||||
if (daysAgo && daysOnward) {
|
||||
sql = `
|
||||
WHERE t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
|
||||
AND t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
|
||||
AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
|
||||
`;
|
||||
params.push(daysAgo, daysOnward);
|
||||
} else if (daysAgo) {
|
||||
sql = `
|
||||
WHERE t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
|
||||
AND t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
|
||||
AND t.shipped < util.VN_CURDATE()
|
||||
`;
|
||||
params.push(daysAgo);
|
||||
} else if (daysOnward) {
|
||||
sql = `
|
||||
WHERE t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
|
||||
AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
|
||||
AND t.shipped >= util.VN_CURDATE()
|
||||
`;
|
||||
params.push(daysOnward);
|
||||
|
|
Loading…
Reference in New Issue