From 91febfd671a844873db9923021cb2aa21c2d3b14 Mon Sep 17 00:00:00 2001 From: Korbinian Preisler Date: Fri, 1 Nov 2019 23:17:42 +0100 Subject: [PATCH] Do not raise PayInvoiceError on credit note partial payment issue8401 review249441002 --- invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index d16a2cedb4..1bfadb861b 100644 --- a/invoice.py +++ b/invoice.py @@ -2769,7 +2769,8 @@ class PayInvoice(Wizard): amount_second_currency = self.start.amount second_currency = self.start.currency - if (amount_invoice > invoice.amount_to_pay + if (0 <= invoice.amount_to_pay < amount_invoice + or amount_invoice < invoice.amount_to_pay <= 0 and self.ask.type != 'writeoff'): lang = Lang.get() raise PayInvoiceError(