changeset 483b4ac76902 in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=483b4ac76902
description:
        Do not test past payment date for supplier invoices

        issue10370
        review361821003
diffstat:

 invoice.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3ed55e2684cb -r 483b4ac76902 invoice.py
--- a/invoice.py        Thu Apr 22 00:03:27 2021 +0200
+++ b/invoice.py        Thu Apr 29 13:21:38 2021 +0200
@@ -999,7 +999,7 @@
                 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):

Reply via email to