Merge pull request #1160 from webnotes/develop

[hotfix] fix null issue in budget variance
This commit is contained in:
Nabin Hait 2013-12-06 01:26:49 -08:00
commit 18098c9c78

View File

@ -121,6 +121,6 @@ def get_costcenter_account_month_map(filters):
for ad in actual_details.get(ccd.name, {}).get(ccd.account, []):
if ad.month_name == month:
tav_dict.actual += ad.debit - ad.credit
tav_dict.actual += flt(ad.debit) - flt(ad.credit)
return cam_map
return cam_map