feat: refs #3199 Added more scopes ticket_recalcByScope
gitea/salix/pipeline/pr-dev Build queued... Details

This commit is contained in:
Guillermo Bonet 2024-05-14 07:54:52 +02:00
parent 4d7ac901c6
commit 1ba6bf9a9c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ BEGIN
JOIN sale s ON s.ticketFk = t.id
JOIN itemTaxCountry itc ON itc.itemFk = s.itemFk
WHERE t.refFk IS NULL
DATE(t.shipped) > util.VN_CURDATE()
AND DATE(t.shipped) > util.VN_CURDATE()
AND (
(vScope = 'client' AND t.clientFk = vId)
OR (vScope = 'address' AND t.addressFk = vId)