Example #1
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('brand_id_072', $parameters['object']->brand_id_078)->get();
     return $parameters;
 }
Example #2
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('active_072', true)->where('brand_id_072', $parameters['object']->brand_id_079)->get();
     if ($parameters['object']->stock_id_079 == null) {
         $parameters['afterButtonFooter'] = '<a class="btn btn-danger margin-l10 delete-lang-record" href="' . route($parameters['resource'] === 'octopus-laboratory-order' ? 'createOctopusLaboratoryStock' : 'createOctopusStock', ['id' => Crypt::encrypt($parameters['id']), 'offset' => $parameters['offset']]) . '">' . trans('octopus::pulsar.create_stock') . '</a>';
     }
     return $parameters;
 }
 public function run()
 {
     Family::insert([['id_070' => 1, 'name_070' => 'Duratrans'], ['id_070' => 2, 'name_070' => 'Foto papel'], ['id_070' => 3, 'name_070' => 'Vinilo Impreso Adhesivo Opaco'], ['id_070' => 4, 'name_070' => 'Foto papel sobre imán'], ['id_070' => 5, 'name_070' => 'Foto papel sobre forex'], ['id_070' => 6, 'name_070' => 'Foto papel sobre cartón-pluma'], ['id_070' => 7, 'name_070' => 'Logo Vinilo Adhesivo Recortado'], ['id_070' => 8, 'name_070' => 'Vinilo Impreso Adhesivo Translúcido'], ['id_070' => 9, 'name_070' => 'Plotter BackLigth'], ['id_070' => 10, 'name_070' => 'Archivo Digital por WeTransfer']]);
 }
Example #4
0
 public function showCustomRecord($parameters)
 {
     $parameters['companies'] = Company::all();
     $parameters['families'] = Family::all();
     $parameters['brands'] = Brand::all();
     $parameters['products'] = Product::builder()->where('active_072', true)->where('brand_id_072', $parameters['object']->brand_id_080)->get();
     if ($parameters['object']->expiration_080 == null || $parameters['object']->expiration_080 > date('U')) {
         $parameters['afterButtonFooter'] = '<a class="btn btn-danger margin-l10 delete-lang-record" href="' . route($parameters['resource'] === 'octopus-supervisor-stock' ? 'createOctopusSupervisorRequestFromStock' : 'createOctopusRequestFromStock', ['stock' => $parameters['id'], 'offset' => $parameters['offset']]) . '">' . trans('octopus::pulsar.replace_stock') . '</a>';
     }
     return $parameters;
 }
Example #5
0
 public function updateCustomRecord($parameters)
 {
     Family::where('id_070', $parameters['id'])->update(['id_070' => $this->request->input('id'), 'name_070' => $this->request->input('name')]);
 }