fix: Fetch base_net_total for each Invoice

This commit is contained in:
GangaManoj 2021-08-24 23:32:19 +05:30
parent 1956f62ad8
commit 257215f479

View File

@ -428,7 +428,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
})