Merge pull request #38894 from frappe/mergify/bp/version-15-hotfix/pr-38893

fix: typeerror on pos order summary to new order screen (backport #38893)
This commit is contained in:
ruthra kumar 2023-12-21 12:26:04 +05:30 committed by GitHub
commit 135aced98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;