autobilled invoices are not considered as automatically paid
Closes #5766
This commit is contained in:
parent
7e5ef41010
commit
5bed322761
|
@ -182,7 +182,7 @@ class Concerto(BaseDataSource):
|
|||
invoice.date_generation as creation_date, \
|
||||
(DATE(invoice.date_limite_paie) < DATE(NOW())) as expired, \
|
||||
invoice.date_limite_paie as expiration_date, \
|
||||
(invoice.paye OR invoice.prelevement_automatique OR \
|
||||
(invoice.paye OR \
|
||||
invoice.statut_tipi IS NOT DISTINCT FROM \'PAID\' OR \
|
||||
invoice.solde = 0) as paid, \
|
||||
DATE(invoice.date_reglement) as paid_date \
|
||||
|
@ -223,7 +223,6 @@ class Concerto(BaseDataSource):
|
|||
(DATE(data_facture.date_limite_paie) < DATE(NOW())) as expired, \
|
||||
data_facture.date_limite_paie as expiration_date, \
|
||||
(data_facture.paye OR \
|
||||
data_facture.prelevement_automatique OR \
|
||||
data_facture.statut_tipi IS NOT DISTINCT FROM \'PAID\' OR \
|
||||
data_facture.solde = 0) as paid, \
|
||||
DATE(data_facture.date_reponse_tipi) as tipi_paid_date, \
|
||||
|
|
Loading…
Reference in New Issue