From ba81cb5b7a1b196c914f01a7a9afaddd9f1af1ba Mon Sep 17 00:00:00 2001 From: Piyush Singhania Date: Wed, 29 Dec 2021 13:42:11 +0530 Subject: [PATCH] Fixed stateCodeMapping issue --- reports/GoodsAndServiceTax/BaseGSTR.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/GoodsAndServiceTax/BaseGSTR.js b/reports/GoodsAndServiceTax/BaseGSTR.js index e11f2b9f..c42c22e6 100644 --- a/reports/GoodsAndServiceTax/BaseGSTR.js +++ b/reports/GoodsAndServiceTax/BaseGSTR.js @@ -48,7 +48,7 @@ class BaseGSTR { row.invNo = ledgerEntry.name; row.invDate = ledgerEntry.date; row.rate = 0; - row.inState = gstin && gstin.substring(0, 2) === stateCodeMap[row.place]; + row.inState = gstin && gstin.substring(0, 2) === stateCodeMap[row.place.toUpperCase()]; row.reverseCharge = !party.gstin ? 'Y' : 'N'; ledgerEntry.taxes?.forEach(tax => { row.rate += tax.rate;