7/1/5
This commit is contained in:
@@ -110,12 +110,13 @@ class FirebaseMessagesController extends GetxController {
|
||||
'body': message.notification!.body
|
||||
});
|
||||
} else if (message.notification!.title == 'Cancel Trip'.tr) {
|
||||
NotificationController().showNotification(
|
||||
'Cancel Trip'.tr, 'Passenger Cancel Trip'.tr, 'cancel');
|
||||
// NotificationController().showNotification(
|
||||
// 'Cancel Trip'.tr, 'Passenger Cancel Trip'.tr, 'cancel');
|
||||
cancelTripDialog();
|
||||
} else if (message.notification!.title! == 'token change'.tr) {
|
||||
NotificationController()
|
||||
.showNotification('token change'.tr, 'token change', 'cancel');
|
||||
// NotificationController()
|
||||
// .showNotification('token change'.tr, 'token change', 'cancel');
|
||||
// GoogleSignInHelper.signOut();
|
||||
GoogleSignInHelper.signOut();
|
||||
} else if (message.notification!.title! == 'message From passenger'.tr) {
|
||||
NotificationController()
|
||||
|
||||
@@ -50,7 +50,7 @@ class LocationController extends GetxController {
|
||||
totalPoints = Get.find<CaptainWalletController>().totalPoints;
|
||||
isActive = Get.find<HomeCaptainController>().isActive;
|
||||
if (isActive) {
|
||||
if (double.parse(totalPoints) > -300) {
|
||||
if (double.parse(totalPoints) > -3000) {
|
||||
await getLocation();
|
||||
|
||||
// if (box.read(BoxName.driverID) != null) {
|
||||
|
||||
@@ -75,7 +75,7 @@ class HomeCaptainController extends GetxController {
|
||||
|
||||
isActive = !isActive;
|
||||
if (isActive) {
|
||||
if (double.parse(totalPoints) > -300) {
|
||||
if (double.parse(totalPoints) > -3000) {
|
||||
locationController.startLocationUpdates();
|
||||
// locationBackController.startBackLocation();
|
||||
activeStartTime = DateTime.now();
|
||||
@@ -123,7 +123,7 @@ class HomeCaptainController extends GetxController {
|
||||
await sql.getCustomQuery(customQuery);
|
||||
countRefuse = results[0]['count'].toString();
|
||||
update();
|
||||
if (int.parse(countRefuse) > 3 || double.parse(totalPoints) <= -300) {
|
||||
if (int.parse(countRefuse) > 3 || double.parse(totalPoints) <= -3000) {
|
||||
locationController.stopLocationUpdates();
|
||||
activeStartTime = null;
|
||||
activeTimer?.cancel();
|
||||
|
||||
@@ -525,8 +525,7 @@ class MapDriverController extends GetxController {
|
||||
}
|
||||
|
||||
double pointsSubtraction = 0;
|
||||
pointsSubtraction =
|
||||
double.parse(paymentAmount) * (-1) * double.parse(kazan);
|
||||
pointsSubtraction = double.parse(paymentAmount) * (-1);
|
||||
var paymentToken2 =
|
||||
await generateTokenDriver((pointsSubtraction).toStringAsFixed(0));
|
||||
var res = await CRUD().post(link: AppLink.addDriversWalletPoints, payload: {
|
||||
@@ -554,7 +553,7 @@ class MapDriverController extends GetxController {
|
||||
Get.to(() => RatePassenger(), arguments: {
|
||||
'passengerId': passengerId,
|
||||
'rideId': rideId,
|
||||
'price': price.toString(),
|
||||
'price': paymentAmount.toString(), //price
|
||||
'walletChecked': walletChecked
|
||||
});
|
||||
// Get.back();
|
||||
|
||||
@@ -58,6 +58,7 @@ class OrderRequestController extends GetxController {
|
||||
List<Map<String, dynamic>> results =
|
||||
await sql.getCustomQuery(customQuery);
|
||||
countRefuse = results[0]['count'].toString();
|
||||
print(countRefuse);
|
||||
update();
|
||||
if (int.parse(countRefuse) > 3) {
|
||||
box.write(BoxName.statusDriverLocation, 'on');
|
||||
|
||||
@@ -4,6 +4,61 @@ class MyTranslation extends Translations {
|
||||
@override
|
||||
Map<String, Map<String, String>> get keys => {
|
||||
"ar": {
|
||||
"You must be recharge your Account":
|
||||
"رصيد حسابك غير كافٍ. يرجى إعادة الشحن للمتابعة",
|
||||
"Commercial International Bank (CIB)": "البنك التجاري الدولي (CIB)",
|
||||
"National Bank of Egypt": "البنك الأهلي المصري",
|
||||
"Qatar National Bank (QNB Alahli)": "بنك قطر الوطني (QNB الأهلي)",
|
||||
"Banque Misr": "بنك مصر",
|
||||
"AlexBank": "بنك الإسكندرية",
|
||||
"Banque du Caire (BDC)": "بنك القاهرة",
|
||||
"HSBC Bank Egypt": "بنك HSBC مصر",
|
||||
"Faisal Islamic Bank of Egypt (FAIB)": "بنك فيصل الإسلامي المصري",
|
||||
"Arab African International Bank (AAIB)":
|
||||
"البنك العربي الأفريقي الدولي",
|
||||
"Export Development Bank of Egypt (EDBE)":
|
||||
"بنك تنمية الصادرات المصري",
|
||||
"Industrial Development Bank of Egypt (IDB)":
|
||||
"بنك التنمية الصناعية المصري",
|
||||
"Suez Canal Bank (SCB)": "بنك قناة السويس",
|
||||
"Bank Audi Egypt": "بنك عوده مصر",
|
||||
"Union National Bank Egypt": "بنك الاتحاد الوطني مصر",
|
||||
"Al Baraka Bank Egypt": "بنك البركة مصر",
|
||||
"Blom Bank (BBE)": "بنك بلوم مصر",
|
||||
"Crédit Agricole Egypt (CAE)": "بنك كريدي أجريكول مصر",
|
||||
"Egyptian Gulf Bank (EG Bank)": "بنك الخليج المصري",
|
||||
"Housing and Development Bank (HDB)": "بنك التعمير والإسكان",
|
||||
"The United Bank of Egypt (UB)": "البنك المتحد مصر",
|
||||
"Arab Bank Plc. (ARAB)": "البنك العربي ش.م.ع.",
|
||||
"Emirates NBD (ENBD)": "بنك الإمارات دبي الوطني",
|
||||
"Al Ahli Bank of Kuwait - Egypt (ABK-Egypt)":
|
||||
"البنك الأهلي الكويتي - مصر",
|
||||
"National Bank of Kuwait - Egypt (NBK-Egypt)":
|
||||
"بنك الكويت الوطني - مصر",
|
||||
"Arab Banking Corporation (Bank ABC)":
|
||||
"مؤسسة التمويل العربي (بنك ABC)",
|
||||
"First Abu Dhabi Bank (FAB)": "بنك أبوظبي الأول",
|
||||
"Abu Dhabi Islamic Bank (ADIB)": "بنك أبوظبي الإسلامي",
|
||||
"Egyptian Arab Land Bank (EALB)": "بنك التعمير العربي المصري",
|
||||
"Abu Dhabi Commercial Bank - Egypt (ADCB)":
|
||||
"بنك أبوظبي التجاري - مصر",
|
||||
"Bank of Alexandria (BOA)": "بنك الإسكندرية",
|
||||
"Société Arabe Internationale de Banque (SAIB)":
|
||||
"البنك العربي الدولي للتجارة (SAIB)",
|
||||
"Attijariwafa Bank Egypt (ABRK)": "بنك التجاري وفا مصر",
|
||||
"Principal Bank for Development and Agricultural Credit (POST)":
|
||||
"البنك الرئيسي للتنمية والائتمان الزراعي",
|
||||
"Nasser Social Bank (NSB)": "بنك ناصر الاجتماعي",
|
||||
"Mashreq Bank (MASH)": "بنك المشرق",
|
||||
"Arab International Bank (AIB)": "البنك العربي الدولي",
|
||||
"General Authority for Suez Canal Economic Zone (GASC)":
|
||||
"الهيئة العامة للمنطقة الاقتصادية لقناة السويس",
|
||||
"Arab Investment Bank (AIBK)": "بنك الاستثمار العربي (AIBK)",
|
||||
"Piraeus Bank (PDAC)": "بنك بيريوس",
|
||||
"National Bank of Greece (ceased operations in Egypt)":
|
||||
"البنك الوطني اليوناني (توقف عن العمل في مصر)",
|
||||
"Central Bank of Egypt (CBE)": "البنك المركزي المصري",
|
||||
"Barclays Egypt (BBE)": "بنك باركليز مصر",
|
||||
"Morning Promo": "عرض الصباح",
|
||||
"this is count of your all trips in the morning promo today from 7:00am-10:00am":
|
||||
"هذا عدد جميع رحلاتك في عرض الصباح اليوم من الساعة 7:00 صباحًا حتى 10:00 صباحًا",
|
||||
@@ -60,7 +115,7 @@ class MyTranslation extends Translations {
|
||||
"Do you want to collect your earnings?":
|
||||
"هل تريد استلام أموالك؟", // Corrected grammar
|
||||
"Total wallet is ": "إجمالي المحفظة هو ",
|
||||
"Remainder": "المتبقي",
|
||||
"Remainder": "الباقي",
|
||||
"Call Page": "صفحة المكالمة",
|
||||
"Call End": "إنهاء المكالمة",
|
||||
"Call Left": "مكالمات متبقية",
|
||||
@@ -635,7 +690,7 @@ class MyTranslation extends Translations {
|
||||
"Best choice for comfort car and flexible route and stops point":
|
||||
"أفضل خيار للسيارة المريحة والطريق المرن ونقطة التوقف",
|
||||
"Insert": "إدراج",
|
||||
' Total weekly points is ': " مجموع النقاط الأسبوعية هو ",
|
||||
' Total weekly is ': " مجموع التحصيل الأسبوعي ",
|
||||
'you can buy ': 'يمكنك شراء',
|
||||
"Which method you will pay": 'أي طريقة الدفع تفضل',
|
||||
"This is for delivery or a motorcycle.":
|
||||
|
||||
@@ -72,7 +72,10 @@ class RateController extends GetxController {
|
||||
});
|
||||
} else {
|
||||
double pointsSubtraction = 0;
|
||||
pointsSubtraction = remainingFee * (-1); // for egypt /100
|
||||
pointsSubtraction = remainingFee *
|
||||
(-1) *
|
||||
double.parse(
|
||||
Get.find<MapDriverController>().kazan); // for egypt /100
|
||||
var paymentToken4 = await Get.find<MapDriverController>()
|
||||
.generateTokenDriver((pointsSubtraction).toStringAsFixed(0));
|
||||
var res = await CRUD()
|
||||
|
||||
Reference in New Issue
Block a user