Skip to content

Commit

Permalink
fix: typeerror on pos order summary to new order screen
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a0a08b)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 21, 2023
1 parent 74606dc commit bf98a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/page/point_of_sale/pos_item_cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf98a8f

Please sign in to comment.