Merge branch 'rebrand-ui' of https://github.com/frappe/erpnext into rebrand-ui
diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js
index 9198d7d..52d345c 100644
--- a/erpnext/selling/page/point_of_sale/pos_item_cart.js
+++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js
@@ -507,20 +507,14 @@
render_taxes(value, taxes) {
if (taxes.length) {
const currency = this.events.get_frm().doc.currency;
- this.$totals_section.find('.taxes-container').css('display', 'flex').html(
- `${
- // eslint-disable-next-line no-unused-vars
- taxes.map((t, i) => {
- const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
- return `<div class="tax-row">
- <div class="tax-label">
- ${description}
- </div>
- <div class="tax-value">${format_currency(value, currency)}</div>
- </div>`;
- }).join('')
- }`
- );
+ const taxes_html = taxes.map(t => {
+ const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
+ return `<div class="tax-row">
+ <div class="tax-label">${description}</div>
+ <div class="tax-value">${format_currency(value, currency)}</div>
+ </div>`
+ }).join('');
+ this.$totals_section.find('.taxes-container').css('display', 'flex').html(taxes_html);
} else {
this.$totals_section.find('.taxes-container').css('display', 'none').html('');
}