Skip to content

Commit

Permalink
Merge pull request #911 from ljain112/fix-gst3b-details
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit authored Jul 31, 2023
2 parents 89a6f3d + 5da1a44 commit 5d5ee52
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,14 @@ def get_data(self):
for invoice in invoices:
place_of_supply = cint(invoice.place_of_supply[0:2]) or state

nature_of_supply = ""

if invoice.gst_category == "Registered Composition":
supplier_state = cint(invoice.supplier_gstin[0:2])
else:
cint(address_state_map.get(invoice.supplier_address)) or state
supplier_state = (
cint(address_state_map.get(invoice.supplier_address)) or state
)

intra, inter = 0, 0
base_amount = invoice.base_amount
Expand Down

0 comments on commit 5d5ee52

Please sign in to comment.