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": "محفظة فاسكانو",