Skip to content

Commit

Permalink
fix: Document Type as CHL in case of return Invoice with Nil-rated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaizyModi authored and mergify[bot] committed Apr 13, 2024
1 parent 7e23363 commit a331778
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions india_compliance/gst_india/utils/e_waybill.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,9 +1473,13 @@ def update_transaction_details(self):
if not doc.is_export_with_gst:
self.transaction_details.update(document_type="BIL")

if doc.doctype in ("Sales Invoice", "Purchase Invoice") and all(
item.gst_treatment in ("Nil-Rated", "Exempted", "Non-GST")
for item in doc.items
if (
doc.doctype in ("Sales Invoice", "Purchase Invoice")
and not doc.is_return
and all(
item.gst_treatment in ("Nil-Rated", "Exempted", "Non-GST")
for item in doc.items
)
):
self.transaction_details.update(document_type="BIL")

Expand Down

0 comments on commit a331778

Please sign in to comment.