Quellcode durchsuchen

buang withTrashed pending wo

ifah
Siti Hajar Ibrahim vor 5 Jahren
Ursprung
Commit
d84b1de2a6

+ 3
- 3
app/Http/Controllers/Contractor/WorkOrderController.php Datei anzeigen

@@ -238,7 +238,7 @@ class WorkOrderController extends Controller
}

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name;
}

@@ -322,7 +322,7 @@ class WorkOrderController extends Controller
$company = Company::where('_id',$w->contractor_id)->first();

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
if(!empty($installer)){
$installer = $installer->StaffDetail->name;
}
@@ -436,7 +436,7 @@ class WorkOrderController extends Controller
$company = Company::where('_id',$w->contractor_id)->first();

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
if(!empty($installer)){
$installer = $installer->StaffDetail->name;
}

+ 3
- 3
app/Http/Controllers/CustomerService/WorkOrderController.php Datei anzeigen

@@ -278,7 +278,7 @@ class WorkOrderController extends Controller
$company = Company::where('_id',$w->contractor_id)->first();

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name;
}

@@ -387,7 +387,7 @@ class WorkOrderController extends Controller
$company = Company::where('_id',$w->contractor_id)->first();

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name;
}

@@ -603,7 +603,7 @@ class WorkOrderController extends Controller
$company = Company::where('_id',$w->contractor_id)->first();

if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
if(!empty($installer)){
$installer = $installer->StaffDetail->name;
}

Laden…
Abbrechen
Speichern