Do not test past payment date for supplier invoices
issue10370 review361821003
This commit is contained in:
1 parent
996ceffb64
commit
a78403cf81
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user