fix: typeerror on pos order summary to new order screen

(cherry picked from commit 6a0a08b59c5b1eadbfdc657a131531d0e7461b11)
This commit is contained in:
ruthra kumar 2023-12-21 12:13:33 +05:30 committed by Mergify
parent 74606dc927
commit bf98a8f855

View File

@ -520,7 +520,7 @@ erpnext.PointOfSale.ItemCart = class {
}
render_taxes(taxes) {
if (taxes.length) {
if (taxes && taxes.length) {
const currency = this.events.get_frm().doc.currency;
const taxes_html = taxes.map(t => {
if (t.tax_amount_after_discount_amount == 0.0) return;