[fix] gross profit

This commit is contained in:
Anand Doshi
2015-11-12 11:07:32 +05:30
parent fe85b2ea17
commit c5c6c0669f

View File

@@ -98,6 +98,7 @@ class GrossProfitGenerator(object):
row.base_amount = flt(row.base_net_amount) row.base_amount = flt(row.base_net_amount)
product_bundles = []
if row.update_stock: if row.update_stock:
product_bundles = self.product_bundles.get(row.parenttype, {}).get(row.parent, frappe._dict()) product_bundles = self.product_bundles.get(row.parenttype, {}).get(row.parent, frappe._dict())
elif row.dn_detail: elif row.dn_detail: