account: add round to last payment term
bzr revid: ced-51a8fd7f3c2c546b126f19f5f7be79edf86a2871
This commit is contained in:
parent
9a92932ef7
commit
795ac565f6
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue