Skip to content

Commit

Permalink
Merge pull request #1944 from ljain112/fix-zero-rated
Browse files Browse the repository at this point in the history
fix: show export invoice with payment of gst in Zero Rated section.
  • Loading branch information
vorasmit authored Mar 29, 2024
2 parents 48b110a + 4334df0 commit ff2c8b4
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ def set_outward_taxable_supplies(self):
place_of_supply = (
invoice_details.get("place_of_supply") or "00-Other Territory"
)
is_overseas_invoice = is_overseas_transaction(
"Sales Invoice", gst_category, place_of_supply
)

for rate, items in items_based_on_rate.items():
for item_code, taxable_value in self.invoice_items.get(inv).items():
Expand All @@ -476,15 +479,14 @@ def set_outward_taxable_supplies(self):
self.report_dict["sup_details"]["osup_nongst"][
"txval"
] += taxable_value
elif rate == 0 or (
is_overseas_transaction(
"Sales Invoice", gst_category, place_of_supply
)
and not invoice_details.get("is_export_with_gst")
):
elif rate == 0 or (is_overseas_invoice):
self.report_dict["sup_details"]["osup_zero"][
"txval"
] += taxable_value

self.report_dict["sup_details"]["osup_zero"]["iamt"] += flt(
taxable_value * rate / 100, 2
)
else:
if inv in self.cgst_sgst_invoices:
tax_rate = rate / 2
Expand Down Expand Up @@ -531,7 +533,10 @@ def set_outward_taxable_supplies(self):
]["iamt"] += flt(taxable_value * rate / 100, 2)

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

invoice_category = "osup_zero" if is_overseas_invoice else "osup_det"

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

Expand Down

0 comments on commit ff2c8b4

Please sign in to comment.