fix: Fetch base_net_total for each Invoice

This commit is contained in:
GangaManoj
2021-08-24 23:32:19 +05:30
parent ae40c2ad34
commit e52b0612fc

View File

@@ -451,7 +451,7 @@ class GrossProfitGenerator(object):
'item_row': None,
'is_return': row.is_return,
'cost_center': row.cost_center,
'base_net_amount': 0,
'base_net_amount': frappe.db.get_value('Sales Invoice', row.parent, 'base_net_total'),
'base_rate': None
})