feat: refs #8138 reduce credit on risk
gitea/salix/pipeline/pr-dev Build queued... Details

This commit is contained in:
Pablo Natek 2024-11-19 08:01:41 +01:00
parent 7a9bcf11e2
commit 2f93da199a
1 changed files with 2 additions and 1 deletions

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