2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

update syntax for null check

This commit is contained in:
Ankit Singhaniya 2021-12-14 23:28:02 +05:30 committed by Alan
parent ef6216f506
commit 384c238583

View File

@ -48,7 +48,7 @@ class BaseGSTR {
row.rate = 0; row.rate = 0;
row.inState = true; row.inState = true;
row.reverseCharge = !party.gstin ? 'Y' : 'N'; row.reverseCharge = !party.gstin ? 'Y' : 'N';
ledgerEntry.taxes && ledgerEntry.taxes.forEach(tax => { ledgerEntry.taxes?.forEach(tax => {
row.rate += tax.rate; row.rate += tax.rate;
const taxAmt = (tax.rate * ledgerEntry.netTotal) / 100; const taxAmt = (tax.rate * ledgerEntry.netTotal) / 100;
if (tax.account === 'IGST') row.igstAmt = taxAmt; if (tax.account === 'IGST') row.igstAmt = taxAmt;