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:
parent
ef6216f506
commit
384c238583
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user