Do not test past payment date for supplier invoices

issue10370
review361821003
This commit is contained in:
Sergi Almacellas Abellana committed 2021-04-29 13:21:38 +02:00
1 parent 996ceffb64
commit a78403cf81
1 file changed
+1 -1
+1 -1
View File
@@ -999,7 +999,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
total, self.company.currency, payment_date)
remainder_total_currency = total_currency
for date, amount in term_lines:
if date < today:
if self.type == 'out' and date < today:
lang = Lang.get()
warning_key = 'invoice_payment_term_%d' % self.id
if Warning.check(warning_key):