This commit is contained in:
Hamza-Ayed
2024-07-01 12:06:34 +03:00
parent d423cc0831
commit 475ba12cde
11 changed files with 444 additions and 58 deletions

View File

@@ -113,7 +113,7 @@ class CaptainWalletController extends GetxController {
if (res != 'failure') {
walletDate = jsonDecode(res);
totalAmount = walletDate['message'][0]['total_amount'] ?? '0';
update();
var res1 = await CRUD().get(
link: AppLink.getAllPaymentVisa,
payload: {'driverID': box.read(BoxName.driverID)});
@@ -269,9 +269,7 @@ class CaptainWalletController extends GetxController {
await Get.find<HomeCaptainController>().getKazanPercent();
kazan = Get.find<HomeCaptainController>().kazan;
getCaptainWalletFromRide();
getCaptainWalletFromBuyPoints();
// checkAccountCaptainBank();
await refreshCaptainWallet();
super.onInit();
}
}