fix(pos): pos loyalty card alignment (#26050)

This commit is contained in:
Afshan 2021-06-16 14:28:03 +05:30 committed by GitHub
parent fd84847f2b
commit d5c172590f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -806,6 +806,9 @@
display: none;
float: right;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
> .cash-shortcuts {
@ -829,6 +832,11 @@
}
}
}
> .loyalty-card {
display: flex;
flex-direction: column;
}
}
}
@ -1134,4 +1142,4 @@
}
}
}
}
}

View File

@ -481,7 +481,7 @@ erpnext.PointOfSale.Payment = class {
const amount = doc.loyalty_amount > 0 ? format_currency(doc.loyalty_amount, doc.currency) : '';
this.$payment_modes.append(
`<div class="payment-mode-wrapper">
<div class="mode-of-payment" data-mode="loyalty-amount" data-payment-type="loyalty-amount">
<div class="mode-of-payment loyalty-card" data-mode="loyalty-amount" data-payment-type="loyalty-amount">
Redeem Loyalty Points
<div class="loyalty-amount-amount pay-amount">${amount}</div>
<div class="loyalty-amount-name">${loyalty_program}</div>
@ -563,4 +563,4 @@ erpnext.PointOfSale.Payment = class {
toggle_component(show) {
show ? this.$component.css('display', 'flex') : this.$component.css('display', 'none');
}
};
};