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,
|
c.email recipient,
|
||||||
eu.email salesPersonEmail,
|
eu.email salesPersonEmail,
|
||||||
t.addressFk,
|
t.addressFk,
|
||||||
|
c.hasDailyInvoice
|
||||||
c.hasToInvoiceByAddress,
|
c.hasToInvoiceByAddress,
|
||||||
t.totalWithVat,
|
t.totalWithVat,
|
||||||
t.companyFk
|
t.companyFk
|
||||||
|
@ -91,6 +92,7 @@ module.exports = Self => {
|
||||||
SUM(totalWithVat) total,
|
SUM(totalWithVat) total,
|
||||||
'quick' serialType
|
'quick' serialType
|
||||||
FROM tmp.ticket_close
|
FROM tmp.ticket_close
|
||||||
|
WHERE hasDailyInvoice
|
||||||
GROUP BY IF (hasToInvoiceByAddress, addressFk, clientFk), companyFk
|
GROUP BY IF (hasToInvoiceByAddress, addressFk, clientFk), companyFk
|
||||||
HAVING total > 0;
|
HAVING total > 0;
|
||||||
DROP TEMPORARY TABLE tmp.ticket_close;
|
DROP TEMPORARY TABLE tmp.ticket_close;
|
||||||
|
|
Loading…
Reference in New Issue