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

@@ -159,7 +159,7 @@
"browseMenu": "تصفح القائمة",
"paymentSummary": "ملخص الدفعة",
"subtotal": "المجموع الفرعي",
"tax": "الضريبة (10%)",
"tax": "الضريبة",
"remove": "حذف",
"proceedToCheckout": "المتابعة إلى الدفع",
"totalAmount": "المجموع الكلي",
@@ -234,10 +234,12 @@
"useLoyaltyPoints": "استخدام نقاط الولاء",
"noLoyaltyItemsInCart": "لا توجد عناصر ولاء في سلة المشتريات",
"pleaseAddLoyaltyItems": "يرجى إضافة عناصر ولاء إلى سلة المشتريات لاستخدام نقاط الولاء",
"loyaltyDiscountApplied": "تم تطبيق خصم الولاء: {{itemName}} (خصم {{amount}})"
"loyaltyDiscountApplied": "تم تطبيق خصم الولاء: {{itemName}} (خصم {{amount}})",
"deliveryFee": "رسوم التوصيل"
},
"checkout": {
"title": "الدفع",
"cash": "كاش",
"creditDebitCard": "بطاقة ائتمان/ائتمان",
"differentCard": "بطاقة اخرى",
"fascanoWallet": "محفظة فاسكانو",

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",