Do not raise PayInvoiceError on credit note partial payment

issue8401
review249441002
This commit is contained in:
Korbinian Preisler committed 2019-11-01 23:17:42 +01:00
1 parent a6bafb42c5
commit 91febfd671
1 file changed
+2 -1
+2 -1
View File
@@ -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(