Skip to content

Commit

Permalink
fix: unassign variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Jul 31, 2023
1 parent e0aba2c commit 5da1a44
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 5da1a44

Please sign in to comment.