Merge pull request #28334 from deepeshgarg007/gstr_1_duplicate_items
fix(India): Sales Invoice with duplicate items not showing correct taxable value
This commit is contained in:
commit
fdb8e1855d
@ -248,7 +248,6 @@ class Gstr1Report(object):
|
||||
""" % (self.doctype, ', '.join(['%s']*len(self.invoices))), tuple(self.invoices), as_dict=1)
|
||||
|
||||
for d in items:
|
||||
if d.item_code not in self.invoice_items.get(d.parent, {}):
|
||||
self.invoice_items.setdefault(d.parent, {}).setdefault(d.item_code, 0.0)
|
||||
self.invoice_items[d.parent][d.item_code] += d.get('taxable_value', 0) or d.get('base_net_amount', 0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user