diff --git a/lib/controllers/providers/api/gas_refill_provider.dart b/lib/controllers/providers/api/gas_refill_provider.dart index 40a96203..fc657ce5 100644 --- a/lib/controllers/providers/api/gas_refill_provider.dart +++ b/lib/controllers/providers/api/gas_refill_provider.dart @@ -112,7 +112,7 @@ class GasRefillProvider extends ChangeNotifier { "site": hospital?.toMap(), "building": {"id": building?.id, "name": building?.name, "value": building?.value}, "floor": {"id": floor?.id, "name": floor?.name, "value": floor?.value}, - if (expectedDateTime != null) "expectedDate": expectedDateTime?.toIso8601String(), + //if (expectedDateTime != null) "expectedDate": expectedDateTime?.toIso8601String(), if (expectedDateTime != null) "expectedTime": expectedDateTime?.toIso8601String(), if (timer?.startAt != null) "startDate": timer.startAt.toIso8601String(), if (timer?.startAt != null) "startTime": timer.startAt.toIso8601String(), @@ -158,7 +158,7 @@ class GasRefillProvider extends ChangeNotifier { "id": newModel.id, "gazRefillNo": newModel.title ?? "", "status": newModel.status.toMap(), - "expectedDate": newModel.expectedDate?.toIso8601String(), + //"expectedDate": newModel.expectedDate?.toIso8601String(), "expectedTime": newModel.expectedDate?.toIso8601String(), if (timer?.startAt != null) "startDate": timer.startAt.toIso8601String(), if (timer?.startAt != null) "startTime": timer.startAt.toIso8601String(), diff --git a/lib/views/pages/user/gas_refill/request_gas_refill.dart b/lib/views/pages/user/gas_refill/request_gas_refill.dart index 1278df23..1df747ea 100644 --- a/lib/views/pages/user/gas_refill/request_gas_refill.dart +++ b/lib/views/pages/user/gas_refill/request_gas_refill.dart @@ -298,27 +298,27 @@ class _RequestGasRefillState extends State { ), ], ), - const SizedBox(height: 8), - if (_userProvider.user?.type == UsersTypes.normal_user || widget.gasRefillModel != null) - Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - const ASubTitle("Expected Date"), - SizedBox( - height: 8 * AppStyle.getScaleFactor(context), - ), - ADateTimePicker( - date: _gasRefillProvider.expectedDateTime, - from: DateTime.now().subtract(const Duration(days: 365)), - to: DateTime.now().add(const Duration(days: 365)), - onDateTimePicker: (date) { - _gasRefillProvider.expectedDateTime = date; - _formModel.expectedDate = _gasRefillProvider.expectedDateTime; - setState(() {}); - }, - ), - ], - ), + //const SizedBox(height: 8), + // if (_userProvider.user?.type == UsersTypes.normal_user || widget.gasRefillModel != null) + // Column( + // crossAxisAlignment: CrossAxisAlignment.stretch, + // children: [ + // const ASubTitle("Expected Date"), + // SizedBox( + // height: 8 * AppStyle.getScaleFactor(context), + // ), + // ADateTimePicker( + // date: _gasRefillProvider.expectedDateTime, + // from: DateTime.now().subtract(const Duration(days: 365)), + // to: DateTime.now().add(const Duration(days: 365)), + // onDateTimePicker: (date) { + // _gasRefillProvider.expectedDateTime = date; + // _formModel.expectedDate = _gasRefillProvider.expectedDateTime; + // setState(() {}); + // }, + // ), + // ], + // ), // if (_userProvider.user?.type == UsersTypes.engineer) // Column( // children: [