|
|
|
|
@ -155,14 +155,14 @@ class ServiceReport {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<bool> validate() async {
|
|
|
|
|
if (visitDate == null) {
|
|
|
|
|
await Fluttertoast.showToast(msg: "Visit Date Required");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (returnToService == null) {
|
|
|
|
|
await Fluttertoast.showToast(msg: "Return To Service Date Required");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// if (visitDate == null) {
|
|
|
|
|
// await Fluttertoast.showToast(msg: "Visit Date Required");
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
// if (returnToService == null) {
|
|
|
|
|
// await Fluttertoast.showToast(msg: "Return To Service Date Required");
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
if (timer?.startAt == null) {
|
|
|
|
|
await Fluttertoast.showToast(msg: "Working Hours Required");
|
|
|
|
|
return false;
|
|
|
|
|
|