2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

Fixed stateCodeMapping issue

This commit is contained in:
Piyush Singhania 2021-12-29 13:42:11 +05:30
parent 5d6104ce0d
commit ba81cb5b7a

View File

@ -48,7 +48,7 @@ class BaseGSTR {
row.invNo = ledgerEntry.name; row.invNo = ledgerEntry.name;
row.invDate = ledgerEntry.date; row.invDate = ledgerEntry.date;
row.rate = 0; 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'; row.reverseCharge = !party.gstin ? 'Y' : 'N';
ledgerEntry.taxes?.forEach(tax => { ledgerEntry.taxes?.forEach(tax => {
row.rate += tax.rate; row.rate += tax.rate;