|
|
|
|
@ -140,7 +140,7 @@ class ServiceReport {
|
|
|
|
|
//if(serviceType == null) return false;
|
|
|
|
|
if (status == null) return false;
|
|
|
|
|
if (type == null && assetType == null) return false;
|
|
|
|
|
if (engineer == null) return false;
|
|
|
|
|
// if (engineer == null) return false;
|
|
|
|
|
if (callLastSituation == null) return false;
|
|
|
|
|
if (callLastSituation?.value == 12) {
|
|
|
|
|
// if(invoiceCode != null || invoiceCode?.isEmpty == true) return false;
|
|
|
|
|
@ -148,7 +148,7 @@ class ServiceReport {
|
|
|
|
|
}
|
|
|
|
|
if (parts == null) return false;
|
|
|
|
|
//if(endDate == null) return false;
|
|
|
|
|
//if(reason == null) return false;
|
|
|
|
|
if (reason == null) return false;
|
|
|
|
|
//todo uncoment this line
|
|
|
|
|
//if((device?.id == null || device.id.isEmpty) && type?.id != 1) return false;
|
|
|
|
|
//if(quantity == null || quantity.isEmpty) return false;
|
|
|
|
|
|