mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +00:00
fix: if-block + indentation (#44494)
This commit is contained in:
@@ -504,17 +504,16 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
|
|||||||
item_wise_tax_amount += flt(tax_detail[key].tax_amount, precision("tax_amount", tax));
|
item_wise_tax_amount += flt(tax_detail[key].tax_amount, precision("tax_amount", tax));
|
||||||
item_wise_net_amount += flt(tax_detail[key].net_amount, precision("net_amount", tax));
|
item_wise_net_amount += flt(tax_detail[key].net_amount, precision("net_amount", tax));
|
||||||
}
|
}
|
||||||
} else {
|
} else if (tax_detail && tax_detail[key]) {
|
||||||
if (tax_detail && tax_detail[key])
|
item_wise_tax_amount += tax_detail[key].tax_amount;
|
||||||
item_wise_tax_amount += tax_detail[key].tax_amount;
|
item_wise_net_amount += tax_detail[key].net_amount;
|
||||||
item_wise_net_amount += tax_detail[key].net_amount;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tax_detail[key] = {
|
tax_detail[key] = {
|
||||||
tax_rate: tax_rate,
|
tax_rate: tax_rate,
|
||||||
tax_amount: flt(item_wise_tax_amount, precision("base_tax_amount", tax)),
|
tax_amount: flt(item_wise_tax_amount, precision("base_tax_amount", tax)),
|
||||||
net_amount: flt(item_wise_net_amount, precision("base_net_amount", tax)),
|
net_amount: flt(item_wise_net_amount, precision("base_net_amount", tax)),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
round_off_totals(tax) {
|
round_off_totals(tax) {
|
||||||
|
|||||||
Reference in New Issue
Block a user