fix: POS Item cart only taxes with amount displayed (#28501)
This commit is contained in:
parent
5ba1bc1572
commit
1909bb569e
@ -502,6 +502,7 @@ erpnext.PointOfSale.ItemCart = class {
|
||||
if (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;
|
||||
const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
|
||||
return `<div class="tax-row">
|
||||
<div class="tax-label">${description}</div>
|
||||
|
Loading…
Reference in New Issue
Block a user