refactor calculation code

- implement fee
- centralize the code
This commit is contained in:
2025-10-27 08:08:22 +03:00
parent 251e7a9369
commit cd49a3756f
13 changed files with 395 additions and 284 deletions

View File

@@ -171,7 +171,7 @@
"browseMenu": "Browse Menu",
"paymentSummary": "Payment Summary",
"subtotal": "Subtotal",
"tax": "Tax (10%)",
"tax": "Tax",
"remove": "Remove",
"proceedToCheckout": "Proceed to Checkout",
"basketTotal": "Basket Total",
@@ -244,10 +244,12 @@
"useLoyaltyPoints": "Use Loyalty Points",
"noLoyaltyItemsInCart": "No loyalty items found in your cart",
"pleaseAddLoyaltyItems": "Please add loyalty items to your cart to use loyalty points",
"loyaltyDiscountApplied": "Loyalty discount applied: {{itemName}} ({{amount}} off)"
"loyaltyDiscountApplied": "Loyalty discount applied: {{itemName}} ({{amount}} off)",
"deliveryFee": "Delivery Fee"
},
"checkout": {
"title": "Checkout",
"cash": "Cash",
"creditDebitCard": "Credit/Debit Card",
"differentCard": "Different Card",
"fascanoWallet": "Fascano Wallet",