|
|
|
|
@ -223,6 +223,16 @@ class _MaintenanceRequestFormState extends State<MaintenanceRequestForm> with Si
|
|
|
|
|
Fluttertoast.showToast(msg: "${context.translation.youHaveToSelect} ${context.translation.repairLocation}");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (model.assistantEmployees != null && model.assistantEmployees!.isNotEmpty) {
|
|
|
|
|
if (model.modelAssistantEmployees?.startDate == null) {
|
|
|
|
|
Fluttertoast.showToast(msg: "Please Select Assistant Employee Start Time");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (model.modelAssistantEmployees?.endDate == null) {
|
|
|
|
|
Fluttertoast.showToast(msg: "Please Select Assistant Employee End Time");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// else if (model.assignedEmployeeId == null) {
|
|
|
|
|
// Fluttertoast.showToast(msg: "${context.translation.youHaveToSelect} ${context.translation.assignedEmployee}");
|
|
|
|
|
// return false;
|
|
|
|
|
|