#7884 added new filter field #2981

Merged
jon merged 15 commits from 7884-AddLabelerField into dev 2024-10-02 05:04:18 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit c4f26094d5 - Show all commits

View File

@ -229,19 +229,19 @@ module.exports = Self => {
if (daysAgo && daysOnward) { if (daysAgo && daysOnward) {
sql = ` 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 AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
`; `;
params.push(daysAgo, daysOnward); params.push(daysAgo, daysOnward);
} else if (daysAgo) { } else if (daysAgo) {
sql = ` sql = `
WHERE t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY AND t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
AND t.shipped < util.VN_CURDATE() AND t.shipped < util.VN_CURDATE()
`; `;
params.push(daysAgo); params.push(daysAgo);
} else if (daysOnward) { } else if (daysOnward) {
sql = ` sql = `
WHERE t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
AND t.shipped >= util.VN_CURDATE() AND t.shipped >= util.VN_CURDATE()
`; `;
params.push(daysOnward); params.push(daysOnward);