Esempio n. 1
0
 public function get_cetakbkb($woid = false)
 {
     if (!$woid) {
         return false;
     }
     $this->data['wo'] = Workorder::find($woid);
     $this->data['partitems'] = Wopart::where('wo_id', '=', $woid)->get();
     return View::make('themes.modul.' . $this->report . '.bkb', $this->data);
 }
 public function postDetach()
 {
     if (Input::has('id') && Input::has('section_id')) {
         $section_id = Input::get('section_id');
         $id = Input::get('id');
         Workorder::find($id)->sections()->detach(Section::find($section_id));
         return ['status' => true];
     } else {
         return ['status' => false];
     }
 }
Esempio n. 3
0
 public function get_cetakwo($woid = false)
 {
     if (!$woid) {
         return false;
     }
     $this->data['wo'] = Workorder::find($woid);
     return View::make('themes.modul.' . $this->report . '.wo', $this->data);
 }