feat: enhance ticket closure process with error handling and email notifications
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
fad95f2cf9
commit
b40981aa03
|
@ -49,6 +49,7 @@ module.exports = Self => {
|
|||
c.email recipient,
|
||||
eu.email salesPersonEmail,
|
||||
t.addressFk,
|
||||
c.hasDailyInvoice
|
||||
c.hasToInvoiceByAddress,
|
||||
t.totalWithVat,
|
||||
t.companyFk
|
||||
|
@ -91,6 +92,7 @@ module.exports = Self => {
|
|||
SUM(totalWithVat) total,
|
||||
'quick' serialType
|
||||
FROM tmp.ticket_close
|
||||
WHERE hasDailyInvoice
|
||||
GROUP BY IF (hasToInvoiceByAddress, addressFk, clientFk), companyFk
|
||||
HAVING total > 0;
|
||||
DROP TEMPORARY TABLE tmp.ticket_close;
|
||||
|
|
Loading…
Reference in New Issue