[FIX] account_budget: Added missing 1 day in the(to the elapsed days and total days) calculation of 'Theoretical Amount' in order to have correct amount value for it. (Maintenance Case: 606232)
bzr revid: rgo@tinyerp.com-20140404070254-ey27l4kq6d1vypq9
This commit is contained in:
parent
5be8fc620e
commit
091de4eb75
|
@ -164,7 +164,7 @@ class crossovered_budget_lines(osv.osv):
|
|||
elapsed = strToDate(date_to) - strToDate(date_to)
|
||||
|
||||
if total.days:
|
||||
theo_amt = float(elapsed.days / float(total.days)) * line.planned_amount
|
||||
theo_amt = float((elapsed.days + 1) / float(total.days + 1)) * line.planned_amount
|
||||
else:
|
||||
theo_amt = line.planned_amount
|
||||
|
||||
|
|
Loading…
Reference in New Issue