2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +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.inState = true;
row.reverseCharge = !party.gstin ? 'Y' : 'N';
ledgerEntry.taxes && ledgerEntry.taxes.forEach(tax => {
ledgerEntry.taxes?.forEach(tax => {
row.rate += tax.rate;
const taxAmt = (tax.rate * ledgerEntry.netTotal) / 100;
if (tax.account === 'IGST') row.igstAmt = taxAmt;