account: add round to last payment term

bzr revid: ced-51a8fd7f3c2c546b126f19f5f7be79edf86a2871
This commit is contained in:
ced 2007-07-03 14:28:19 +00:00
parent 9a92932ef7
commit 795ac565f6
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ class account_payment_term(osv.osv):
if line.value=='fixed':
amt = round(line.value_amount, 2)
elif line.value=='procent':
amt = round(amount * line.value_amount,2)
amt = round(amount * line.value_amount, 2)
elif line.value=='balance':
amt = amount
amt = round(amount, 2)
if amt:
next_date = mx.DateTime.strptime(date_ref, '%Y-%m-%d') + RelativeDateTime(days=line.days)
if line.condition == 'end of month':