mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
fix: More print statements for debugging
This commit is contained in:
@@ -308,7 +308,9 @@ class GSTR3BReport(Document):
|
||||
inter_state_supply_tax_mapping = {}
|
||||
inter_state_supply_details = {}
|
||||
|
||||
print(inter_state_supply_tax)
|
||||
for d in inter_state_supply_tax:
|
||||
print(d)
|
||||
inter_state_supply_tax_mapping.setdefault(cstr(d.name), {
|
||||
'place_of_supply': d.place_of_supply,
|
||||
'taxable_value': d.net_total,
|
||||
@@ -319,18 +321,23 @@ class GSTR3BReport(Document):
|
||||
})
|
||||
|
||||
if d.account_head in [d.cgst_account for d in self.account_heads]:
|
||||
print(d.account_head, d.name, d.tax_amount)
|
||||
inter_state_supply_tax_mapping[cstr(d.name)]['camt'] += d.tax_amount
|
||||
|
||||
if d.account_head in [d.sgst_account for d in self.account_heads]:
|
||||
print(d.account_head, d.name, d.tax_amount)
|
||||
inter_state_supply_tax_mapping[cstr(d.name)]['samt'] += d.tax_amount
|
||||
|
||||
if d.account_head in [d.igst_account for d in self.account_heads]:
|
||||
print(d.account_head, d.name, d.tax_amount)
|
||||
inter_state_supply_tax_mapping[cstr(d.name)]['iamt'] += d.tax_amount
|
||||
|
||||
if d.account_head in [d.cess_account for d in self.account_heads]:
|
||||
print(d.account_head, d.name, d.tax_amount)
|
||||
inter_state_supply_tax_mapping[cstr(d.name)]['csamt'] += d.tax_amount
|
||||
|
||||
for key, value in iteritems(inter_state_supply_tax_mapping):
|
||||
print(key, value, d.place_of_supply)
|
||||
if d.place_of_supply:
|
||||
osup_det = self.report_dict["sup_details"]["osup_det"]
|
||||
osup_det["txval"] = flt(osup_det["txval"] + value['taxable_value'], 2)
|
||||
@@ -348,7 +355,7 @@ class GSTR3BReport(Document):
|
||||
|
||||
inter_state_supply_details[(d.gst_category, d.place_of_supply)]['txval'] += value['taxable_value']
|
||||
inter_state_supply_details[(d.gst_category, d.place_of_supply)]['iamt'] += value['iamt']
|
||||
print(self.report_dict['sup_details']['osup_det']['iamt'], 2)
|
||||
|
||||
return inter_state_supply_details
|
||||
|
||||
def get_inward_nil_exempt(self, state):
|
||||
|
||||
Reference in New Issue
Block a user