[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)

lp bug: https://launchpad.net/bugs/1279922 fixed

bzr revid: rgo@tinyerp.com-20140409085332-ul2rq25pkivtyzja
This commit is contained in:
Ravi Gohil (OpenERP) 2014-04-09 14:23:32 +05:30
commit e0274d1bd2
1 changed files with 1 additions and 1 deletions

View File

@ -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