feat: Add discount order component to manage order discounts with authorization logic.
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 13m59s
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 13m59s
This commit is contained in:
@@ -84,15 +84,9 @@ export class DiscountOrderComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
confirmDiscount() {
|
||||
const domain = '@jurunense.com.br';
|
||||
let email = this.formDiscount.get('formUser.email').value;
|
||||
|
||||
// Remover domínio se já estiver presente
|
||||
if (email.toLowerCase().endsWith(domain)) {
|
||||
email = email.substring(0, email.length - domain.length);
|
||||
}
|
||||
|
||||
const emailUpperCase = (email + domain).toUpperCase();
|
||||
const emailUpperCase = email.toUpperCase();
|
||||
const passwordUpperCase = this.formDiscount.get('formUser.password').value.toUpperCase();
|
||||
|
||||
if (this.discountAuthorization < this.percent) {
|
||||
|
||||
Reference in New Issue
Block a user