Browse Source

flag error

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
b3956b0cd5

+ 1
- 1
app/Http/Controllers/Contractor/WorkOrderController.php View File



} }


info('contractor242' . $w->installer_id);
info('contractor242' . $w->installer_id . $w->wo);
if($w->installer_id != ''){ if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); $installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name; $installer = $installer->StaffDetail->name;

+ 2
- 2
app/Http/Controllers/CustomerService/WorkOrderController.php View File

$product = Product::where('speed',$form->PackageDetail->name)->where('formT',$w->Form->type_application)->first(); $product = Product::where('speed',$form->PackageDetail->name)->where('formT',$w->Form->type_application)->first();
$company = Company::where('_id',$w->contractor_id)->first(); $company = Company::where('_id',$w->contractor_id)->first();


info('cs282 ' . $w->installer_id);
info('cs282 ' . $w->installer_id . $w->wo);
if($w->installer_id != ''){ if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); $installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name; $installer = $installer->StaffDetail->name;
$product = Product::where('speed',$form->PackageDetail->name)->where('formT',$w->Form->type_application)->first(); $product = Product::where('speed',$form->PackageDetail->name)->where('formT',$w->Form->type_application)->first();
$company = Company::where('_id',$w->contractor_id)->first(); $company = Company::where('_id',$w->contractor_id)->first();


info('cs499 ' . $w->installer_id);
info('cs499 ' . $w->installer_id . $w->wo);
if($w->installer_id != ''){ if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first(); $installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = $installer->StaffDetail->name; $installer = $installer->StaffDetail->name;

Loading…
Cancel
Save