Compare commits

...

1 Commits

Author SHA1 Message Date
Carlos Andrés 6cc7564e0c feat: facturacón diaria por cliente #7037
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-03-14 16:24:38 +01:00
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.salesPersonFk,
c.isToBeMailed, c.isToBeMailed,
c.hasToInvoice, c.hasToInvoice,
co.hasDailyInvoice, IF(c.hasDailyInvoice IS NULL, co.hasDailyInvoice, c.hasDailyInvoice) hasDailyInvoice,
eu.email salesPersonEmail, eu.email salesPersonEmail,
t.addressFk t.addressFk
FROM ticket t FROM ticket t

View File

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

View File

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

View File

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