feat: facturacón diaria por cliente #7037
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-03-14 16:24:38 +01:00
parent 7e37a2b376
commit 6cc7564e0c
5 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE vn.client ADD hasDailyInvoice TINYINT(1) DEFAULT NULL NULL;

View File

@ -41,7 +41,7 @@ module.exports = Self => {
c.salesPersonFk,
c.isToBeMailed,
c.hasToInvoice,
co.hasDailyInvoice,
IF(c.hasDailyInvoice IS NULL, co.hasDailyInvoice, c.hasDailyInvoice) hasDailyInvoice,
eu.email salesPersonEmail,
t.addressFk
FROM ticket t

View File

@ -47,7 +47,7 @@ module.exports = Self => {
c.salesPersonFk,
c.isToBeMailed,
c.hasToInvoice,
co.hasDailyInvoice,
IF(c.hasDailyInvoice IS NULL, co.hasDailyInvoice, c.hasDailyInvoice) hasDailyInvoice,
eu.email salesPersonEmail
FROM expedition e
JOIN ticket t ON t.id = e.ticketFk

View File

@ -36,7 +36,7 @@ module.exports = Self => {
c.salesPersonFk,
c.isToBeMailed,
c.hasToInvoice,
co.hasDailyInvoice,
IF(c.hasDailyInvoice IS NULL, co.hasDailyInvoice, c.hasDailyInvoice) hasDailyInvoice,
eu.email salesPersonEmail
FROM expedition e
JOIN ticket t ON t.id = e.ticketFk

View File

@ -36,7 +36,7 @@ module.exports = Self => {
c.salesPersonFk,
c.isToBeMailed,
c.hasToInvoice,
co.hasDailyInvoice,
IF(c.hasDailyInvoice IS NULL, co.hasDailyInvoice, c.hasDailyInvoice) hasDailyInvoice,
eu.email salesPersonEmail
FROM expedition e
JOIN ticket t ON t.id = e.ticketFk