mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
style: fix formatting
This commit is contained in:
@@ -507,20 +507,14 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
render_taxes(value, taxes) {
|
render_taxes(value, taxes) {
|
||||||
if (taxes.length) {
|
if (taxes.length) {
|
||||||
const currency = this.events.get_frm().doc.currency;
|
const currency = this.events.get_frm().doc.currency;
|
||||||
this.$totals_section.find('.taxes-container').css('display', 'flex').html(
|
const taxes_html = taxes.map(t => {
|
||||||
`${
|
const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
|
||||||
// eslint-disable-next-line no-unused-vars
|
return `<div class="tax-row">
|
||||||
taxes.map((t, i) => {
|
<div class="tax-label">${description}</div>
|
||||||
const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
|
<div class="tax-value">${format_currency(value, currency)}</div>
|
||||||
return `<div class="tax-row">
|
</div>`
|
||||||
<div class="tax-label">
|
}).join('');
|
||||||
${description}
|
this.$totals_section.find('.taxes-container').css('display', 'flex').html(taxes_html);
|
||||||
</div>
|
|
||||||
<div class="tax-value">${format_currency(value, currency)}</div>
|
|
||||||
</div>`
|
|
||||||
}).join('')
|
|
||||||
}`
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
this.$totals_section.find('.taxes-container').css('display', 'none').html('');
|
this.$totals_section.find('.taxes-container').css('display', 'none').html('');
|
||||||
}
|
}
|
||||||
@@ -844,7 +838,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
<div class="transactions-label">Recent Transactions</div>`
|
<div class="transactions-label">Recent Transactions</div>`
|
||||||
);
|
);
|
||||||
// transactions need to be in diff div from sticky elem for scrolling
|
// transactions need to be in diff div from sticky elem for scrolling
|
||||||
this.$customer_section.append(`<div class="customer-transactions"></div>`)
|
this.$customer_section.append(`<div class="customer-transactions"></div>`);
|
||||||
|
|
||||||
this.render_customer_fields();
|
this.render_customer_fields();
|
||||||
this.fetch_customer_transactions();
|
this.fetch_customer_transactions();
|
||||||
|
|||||||
Reference in New Issue
Block a user