[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-20140408073452-28jfel5fp039s07e
This commit is contained in:
commit
5a19eb8ff5
|
@ -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