account: add round to pay wizard for comparaison

bzr revid: ced-8930837c93b21a205fa48f1ce9f22f10fd61075a
This commit is contained in:
ced 2007-07-12 15:31:07 +00:00
parent ba31e00dee
commit bc08263dca
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def _trans_reconcile(self, cr, uid, data, context):
def _wo_check(self, cr, uid, data, context):
pool = pooler.get_pool(cr.dbname)
invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context)
if data['form']['amount'] == invoice.amount_total:
if round(data['form']['amount'], 2) == round(invoice.amount_total, 2):
return 'reconcile'
return 'addendum'