feat: refs #7134 #7134 use VN_CURDATE

This commit is contained in:
Javier Segarra 2024-11-20 14:07:14 +01:00
parent f46a46359e
commit aab595e9dd
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ BEGIN
JOIN travel tr ON tr.id = e.travelFk JOIN travel tr ON tr.id = e.travelFk
JOIN currency c ON c.id = e.currencyFk JOIN currency c ON c.id = e.currencyFk
WHERE e.supplierFk = vSupplierFk WHERE e.supplierFk = vSupplierFk
AND tr.landed >= CURDATE() AND tr.landed >= util.VN_CURDATE()
AND e.invoiceInFk IS NULL AND e.invoiceInFk IS NULL
AND vHasEntries AND vHasEntries
ORDER BY (dated IS NULL AND NOT isBooked), ORDER BY (dated IS NULL AND NOT isBooked),