mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 22:38:25 +00:00
Merge pull request #31310 from frappe/mergify/bp/version-13-hotfix/pr-31294
fix(India): Incorrect taxable in GSTR-3B report (backport #31294)
This commit is contained in:
@@ -245,11 +245,10 @@ class GSTR3BReport(Document):
|
||||
)
|
||||
|
||||
for d in item_details:
|
||||
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
|
||||
)
|
||||
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
|
||||
)
|
||||
|
||||
if d.is_nil_exempt and d.item_code not in self.is_nil_exempt:
|
||||
self.is_nil_exempt.append(d.item_code)
|
||||
@@ -336,7 +335,6 @@ class GSTR3BReport(Document):
|
||||
|
||||
def set_outward_taxable_supplies(self):
|
||||
inter_state_supply_details = {}
|
||||
|
||||
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 = (
|
||||
@@ -362,7 +360,6 @@ class GSTR3BReport(Document):
|
||||
else:
|
||||
self.report_dict["sup_details"]["osup_det"]["iamt"] += taxable_value * rate / 100
|
||||
self.report_dict["sup_details"]["osup_det"]["txval"] += taxable_value
|
||||
|
||||
if (
|
||||
gst_category in ["Unregistered", "Registered Composition", "UIN Holders"]
|
||||
and self.gst_details.get("gst_state") != place_of_supply.split("-")[1]
|
||||
|
||||
Reference in New Issue
Block a user