feat: facturacón diaria por cliente #7037
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
7e37a2b376
commit
6cc7564e0c
|
@ -0,0 +1,2 @@
|
|||
|
||||
ALTER TABLE vn.client ADD hasDailyInvoice TINYINT(1) DEFAULT NULL NULL;
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue