From 5da1a4473766be5d1163ad918172c861e8975cc3 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Mon, 31 Jul 2023 12:19:59 +0530 Subject: [PATCH] fix: unassign variables --- .../gst_india/report/gstr_3b_details/gstr_3b_details.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/india_compliance/gst_india/report/gstr_3b_details/gstr_3b_details.py b/india_compliance/gst_india/report/gstr_3b_details/gstr_3b_details.py index 38ef38f98..dfa37083c 100644 --- a/india_compliance/gst_india/report/gstr_3b_details/gstr_3b_details.py +++ b/india_compliance/gst_india/report/gstr_3b_details/gstr_3b_details.py @@ -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