Merge pull request #38893 from ruthra-kumar/typeerror_in_pos
fix: typeerror on pos order summary to new order screen
This commit is contained in:
commit
c20995ec2f
@ -520,7 +520,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render_taxes(taxes) {
|
render_taxes(taxes) {
|
||||||
if (taxes.length) {
|
if (taxes && taxes.length) {
|
||||||
const currency = this.events.get_frm().doc.currency;
|
const currency = this.events.get_frm().doc.currency;
|
||||||
const taxes_html = taxes.map(t => {
|
const taxes_html = taxes.map(t => {
|
||||||
if (t.tax_amount_after_discount_amount == 0.0) return;
|
if (t.tax_amount_after_discount_amount == 0.0) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user