mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix: Tests
This commit is contained in:
@@ -306,26 +306,27 @@ class GSTR3BReport(Document):
|
|||||||
inter_state_supply_details = {}
|
inter_state_supply_details = {}
|
||||||
|
|
||||||
for d in inter_state_supply_tax:
|
for d in inter_state_supply_tax:
|
||||||
inter_state_supply_tax_mapping.setdefault(d.name, {
|
if d.name:
|
||||||
'place_of_supply': d.place_of_supply,
|
inter_state_supply_tax_mapping.setdefault(d.name, {
|
||||||
'taxable_value': d.net_total,
|
'place_of_supply': d.place_of_supply,
|
||||||
'camt': 0.0,
|
'taxable_value': d.net_total,
|
||||||
'samt': 0.0,
|
'camt': 0.0,
|
||||||
'iamt': 0.0,
|
'samt': 0.0,
|
||||||
'csamt': 0.0
|
'iamt': 0.0,
|
||||||
})
|
'csamt': 0.0
|
||||||
|
})
|
||||||
|
|
||||||
if d.account_head in [d.cgst_account for d in self.account_heads]:
|
if d.account_head in [d.cgst_account for d in self.account_heads]:
|
||||||
inter_state_supply_tax_mapping[d.name]['camt'] += d.tax_amount
|
inter_state_supply_tax_mapping[d.name]['camt'] += d.tax_amount
|
||||||
|
|
||||||
if d.account_head in [d.sgst_account for d in self.account_heads]:
|
if d.account_head in [d.sgst_account for d in self.account_heads]:
|
||||||
inter_state_supply_tax_mapping[d.name]['samt'] += d.tax_amount
|
inter_state_supply_tax_mapping[d.name]['samt'] += d.tax_amount
|
||||||
|
|
||||||
if d.account_head in [d.igst_account for d in self.account_heads]:
|
if d.account_head in [d.igst_account for d in self.account_heads]:
|
||||||
inter_state_supply_tax_mapping[d.name]['iamt'] += d.tax_amount
|
inter_state_supply_tax_mapping[d.name]['iamt'] += d.tax_amount
|
||||||
|
|
||||||
if d.account_head in [d.cess_account for d in self.account_heads]:
|
if d.account_head in [d.cess_account for d in self.account_heads]:
|
||||||
inter_state_supply_tax_mapping[d.name]['csamt'] += d.tax_amount
|
inter_state_supply_tax_mapping[d.name]['csamt'] += d.tax_amount
|
||||||
|
|
||||||
for key, value in iteritems(inter_state_supply_tax_mapping):
|
for key, value in iteritems(inter_state_supply_tax_mapping):
|
||||||
if d.place_of_supply:
|
if d.place_of_supply:
|
||||||
|
|||||||
Reference in New Issue
Block a user