Browse Source

save customer category in wo

ifah
Siti Hajar Ibrahim 4 years ago
parent
commit
d469cb2651
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      app/Http/Controllers/CustomerService/WorkOrderController.php

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

$wo->created_by = $user->_id; $wo->created_by = $user->_id;
$wo->save(); $wo->save();


$form = Form::where('_id',$wo->_id)->first();
$form = Form::where('_id',$wo->_id)->first();
$form->customer_category = $request->cust_category;
$form->save();
$contractor = Company::where('_id',$wo->contractor_id)->first(); $contractor = Company::where('_id',$wo->contractor_id)->first();


$status = ''; $st_id = ''; $status = ''; $st_id = '';

Loading…
Cancel
Save