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