Skip to content

Commit

Permalink
Change div payment-mode-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bvisible authored Oct 30, 2023
1 parent 2178511 commit 5cacc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/selling/page/point_of_sale/pos_payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ erpnext.PointOfSale.Payment = class {
const payment_type = p.type;
const margin = i % 2 === 0 ? 'pr-2' : 'pl-2';
const amount = p.amount != 0 ? format_currency(p.amount, currency) : ''; //// replaced p.amount > 0 with p.amount != 0
//// removed first line <div class="payment-mode-wrapper"> of return
//// added ${mode} in div.payment-mode-wrapper
return (`
<div class="payment-mode-wrapper ${mode}">
<div class="mode-of-payment" data-mode="${mode}" data-payment-type="${payment_type}">
${p.mode_of_payment}
<div class="${mode}-amount pay-amount">${amount}</div>
Expand Down

0 comments on commit 5cacc68

Please sign in to comment.