Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Jun 9, 2022
1 parent 20f568c commit 50aafdb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions erpnext/regional/doctype/gstr_3b_report/gstr_3b_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,13 @@ def get_outward_tax_details(self, doctype):

def set_outward_taxable_supplies(self):
inter_state_supply_details = {}
invoice_list = {}
for inv, items_based_on_rate in self.items_based_on_tax_rate.items():
gst_category = self.invoice_detail_map.get(inv, {}).get("gst_category")
place_of_supply = (
self.invoice_detail_map.get(inv, {}).get("place_of_supply") or "00-Other Territory"
)
export_type = self.invoice_detail_map.get(inv, {}).get("export_type")

invoice_list.setdefault(inv, 0.0)

for rate, items in items_based_on_rate.items():
for item_code, taxable_value in self.invoice_items.get(inv).items():
if item_code in items:
Expand Down Expand Up @@ -374,12 +371,10 @@ def set_outward_taxable_supplies(self):
inter_state_supply_details[(gst_category, place_of_supply)]["iamt"] += (
taxable_value * rate / 100
)
invoice_list[inv] += taxable_value

if self.invoice_cess.get(inv):
self.report_dict["sup_details"]["osup_det"]["csamt"] += flt(self.invoice_cess.get(inv), 2)

print({k: v for k, v in sorted(invoice_list.items(), key=lambda item: item[1])})
self.set_inter_state_supply(inter_state_supply_details)

def set_supplies_liable_to_reverse_charge(self):
Expand Down

0 comments on commit 50aafdb

Please sign in to comment.