Set overpayment in the company currency
issue11608 review431381003
This commit is contained in:
1 parent
512fe6c2fa
commit
9158d82161
1 file changed
+5
-1
+5
-1
@@ -3197,7 +3197,11 @@ class PayInvoice(Wizard):
|
||||
raise PayInvoiceError(
|
||||
gettext('account_invoice.msg_invoice_overpay_paid',
|
||||
invoice=invoice.rec_name))
|
||||
overpayment = amount_invoice - invoice.amount_to_pay
|
||||
with Transaction().set_context(date=self.start.date):
|
||||
overpayment = Currency.compute(
|
||||
invoice.currency,
|
||||
amount_invoice - invoice.amount_to_pay,
|
||||
invoice.company.currency)
|
||||
|
||||
lines = []
|
||||
if not invoice.company.currency.is_zero(amount):
|
||||
|
||||
Reference in new issue
Block a user