feat: refs #8138 reduce credit on risk #3215

Merged
pablone merged 3 commits from 8138-feat-reduce-credit-on-risk into dev 2024-11-20 11:21:10 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 2f93da199a - Show all commits

View File

@ -265,7 +265,8 @@ module.exports = Self => {
FROM sale s2
JOIN item i2 ON i2.id = s2.itemFk
WHERE s2.ticketFk = t.id
) AS packing
) AS packing,
c.credit
FROM ticket t
LEFT JOIN invoiceOut io ON t.refFk = io.ref
LEFT JOIN zone z ON z.id = t.zoneFk