[FIX]:invoice residual amount is get negatvie when use different currency and payment through bank statement
bzr revid: ksa@tinyerp.com-20120607045603-npveflilbe76auj9
This commit is contained in:
parent
ef7c1ab249
commit
9351ca023f
|
@ -85,6 +85,7 @@ class account_statement_from_invoice_lines(osv.osv_memory):
|
|||
'currency_id':statement.currency.id,
|
||||
'date':line.date,
|
||||
'amount':abs(amount),
|
||||
'payment_rate': result['value']['payment_rate'],
|
||||
'period_id':statement.period_id.id}
|
||||
voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
|
||||
|
||||
|
|
Loading…
Reference in New Issue