Merge branch '1310' of github.com:webnotes/erpnext into 1310

This commit is contained in:
Nabin Hait
2013-11-14 18:50:23 +05:30
5 changed files with 54 additions and 44 deletions

View File

@@ -17,7 +17,6 @@ def execute(filters=None):
cam_map = get_costcenter_account_month_map(filters)
data = []
for cost_center, cost_center_items in cam_map.items():
for account, monthwise_data in cost_center_items.items():
row = [cost_center, account]
@@ -120,8 +119,7 @@ def get_costcenter_account_month_map(filters):
tav_dict.target = flt(ccd.budget_allocated) * month_percentage /100
for ad in actual_details.get(ccd.name, {}).get(ccd.account, []):
if ad.month_name == month and ad.account == ccd.account \
and ad.cost_center == ccd.name:
if ad.month_name == month:
tav_dict.actual += ad.debit - ad.credit
return cam_map