11/1/6
This commit is contained in:
@@ -16,6 +16,7 @@ class HomeCaptainController extends GetxController {
|
||||
Timer? activeTimer;
|
||||
Map data = {};
|
||||
String totalMoneyToday = '0';
|
||||
String totalMoneyInSEFER = '0';
|
||||
String totalDurationToday = '0';
|
||||
Timer? timer;
|
||||
// Inject the LocationController class
|
||||
@@ -89,7 +90,8 @@ class HomeCaptainController extends GetxController {
|
||||
link: AppLink.getDriverpaymentToday,
|
||||
payload: {'driverID': box.read(BoxName.driverID).toString()});
|
||||
data = jsonDecode(res);
|
||||
totalMoneyToday = data['message'][0]['total_amount'];
|
||||
totalMoneyToday = data['message'][0]['todayAmount'];
|
||||
totalMoneyInSEFER = data['message'][0]['total_amount'];
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user