From 0d2e2646aed7aa4cb5ac2f06cdf648b51009f2fe Mon Sep 17 00:00:00 2001 From: Korbinian Preisler Date: Tue, 8 Sep 2009 21:52:19 +0200 Subject: [PATCH] use given date for computation of amount with differing currency instead of currenct date (transplanted from 8b325f26eb8b9ed0020933493e0c7862c1fc713b) --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 187571c8e2..03c6486d03 100644 --- a/invoice.py +++ b/invoice.py @@ -2259,7 +2259,7 @@ class PayInvoice(Wizard): ctx['date'] = data['form']['date'] amount = currency_obj.compute(cursor, user, data['form']['currency'], data['form']['amount'], invoice.company.currency, - context=context) + context=ctx) res = invoice_obj.get_reconcile_lines_for_amount(cursor, user, invoice, amount) if res[1] == Decimal('0.0'): @@ -2301,7 +2301,7 @@ class PayInvoice(Wizard): ctx['date'] = data['form']['date'] amount = currency_obj.compute(cursor, user, data['form']['currency'], data['form']['amount'], invoice.company.currency, - context=context) + context=ctx) reconcile_lines = invoice_obj.get_reconcile_lines_for_amount(cursor, user, invoice, amount)