Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 public function jsonBrandProducts()
 {
     $parameters = $this->request->route()->parameters();
     $products = Product::builder()->where('active_072', true)->where('brand_id_072', $parameters['brand'])->get();
     return response()->json($products);
 }
Esempio n. 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;
 }
 public function run()
 {
     Product::insert([['id_072' => 1, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 2, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 3, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 4, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 5, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 6, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 7, 'brand_id_072' => 1, 'name_072' => 'HALLOWEEN', 'active_072' => true], ['id_072' => 8, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 9, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 10, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 11, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 12, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 13, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 14, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 15, 'brand_id_072' => 3, 'name_072' => 'Baby TOUS (Sept-2014)', 'active_072' => true], ['id_072' => 16, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 17, 'brand_id_072' => 3, 'name_072' => 'TOUS Touch (Sept-2014)', 'active_072' => true], ['id_072' => 18, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 19, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 20, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 21, 'brand_id_072' => 2, 'name_072' => 'GOLD DIVA', 'active_072' => true], ['id_072' => 22, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 23, 'brand_id_072' => 3, 'name_072' => 'TOUS H2O', 'active_072' => true], ['id_072' => 24, 'brand_id_072' => 3, 'name_072' => 'TOUS MAN Sport', 'active_072' => true], ['id_072' => 25, 'brand_id_072' => 1, 'name_072' => 'Producto desconocido', 'active_072' => false], ['id_072' => 26, 'brand_id_072' => 2, 'name_072' => 'GOLD Bouquet', 'active_072' => true], ['id_072' => 27, 'brand_id_072' => 3, 'name_072' => 'TOUS l´Eau 3fr.', 'active_072' => true], ['id_072' => 28, 'brand_id_072' => 3, 'name_072' => 'Logo TOUS', 'active_072' => true], ['id_072' => 29, 'brand_id_072' => 1, 'name_072' => 'Logo  HWN - JP', 'active_072' => true], ['id_072' => 30, 'brand_id_072' => 2, 'name_072' => 'Logo ROBERTO VERINO', 'active_072' => true], ['id_072' => 31, 'brand_id_072' => 2, 'name_072' => 'RV PURE Man', 'active_072' => true], ['id_072' => 32, 'brand_id_072' => 1, 'name_072' => 'HWN FEVER', 'active_072' => true], ['id_072' => 33, 'brand_id_072' => 3, 'name_072' => 'TOUS Sensual Touch', 'active_072' => true], ['id_072' => 34, 'brand_id_072' => 4, 'name_072' => 'Nuit Etoilée', 'active_072' => true], ['id_072' => 35, 'brand_id_072' => 1, 'name_072' => 'HWN MAN', 'active_072' => true], ['id_072' => 36, 'brand_id_072' => 4, 'name_072' => 'Logo ANNICK GOUTAL', 'active_072' => true], ['id_072' => 37, 'brand_id_072' => 5, 'name_072' => 'Logo Salvatore Ferragamo', 'active_072' => true], ['id_072' => 38, 'brand_id_072' => 5, 'name_072' => 'Signorina EdP', 'active_072' => true], ['id_072' => 39, 'brand_id_072' => 3, 'name_072' => 'TOUS Kids', 'active_072' => true], ['id_072' => 40, 'brand_id_072' => 3, 'name_072' => 'TOUS EdT + MAN (mixta)', 'active_072' => true], ['id_072' => 41, 'brand_id_072' => 3, 'name_072' => 'TOUS MAN INTENSE', 'active_072' => true], ['id_072' => 42, 'brand_id_072' => 3, 'name_072' => 'TOUS EdT', 'active_072' => true], ['id_072' => 43, 'brand_id_072' => 3, 'name_072' => 'TOUS MAN', 'active_072' => true], ['id_072' => 44, 'brand_id_072' => 3, 'name_072' => 'ROSA (frasco)', 'active_072' => true], ['id_072' => 45, 'brand_id_072' => 3, 'name_072' => 'ROSA (Sra.)', 'active_072' => true], ['id_072' => 46, 'brand_id_072' => 2, 'name_072' => 'RV PURE Woman', 'active_072' => true], ['id_072' => 47, 'brand_id_072' => 1, 'name_072' => 'HWN blue drop', 'active_072' => true], ['id_072' => 48, 'brand_id_072' => 5, 'name_072' => 'Signorina EdT', 'active_072' => true], ['id_072' => 49, 'brand_id_072' => 1, 'name_072' => 'HWN Fleur', 'active_072' => true], ['id_072' => 50, 'brand_id_072' => 5, 'name_072' => 'ACQUA ESSENZIALE', 'active_072' => true], ['id_072' => 51, 'brand_id_072' => 5, 'name_072' => 'Signorina Eleganza', 'active_072' => true], ['id_072' => 52, 'brand_id_072' => 5, 'name_072' => 'Signorina Acqua Essenziale', 'active_072' => true], ['id_072' => 53, 'brand_id_072' => 3, 'name_072' => 'ROSA Eau Légère', 'active_072' => true], ['id_072' => 54, 'brand_id_072' => 3, 'name_072' => 'TOUS Love', 'active_072' => true], ['id_072' => 55, 'brand_id_072' => 1, 'name_072' => 'HWN MAN Rock On', 'active_072' => true], ['id_072' => 56, 'brand_id_072' => 4, 'name_072' => 'EAU D´HADRIEN -Institucional-', 'active_072' => true], ['id_072' => 57, 'brand_id_072' => 6, 'name_072' => 'Arabian Nights -Collection-', 'active_072' => true], ['id_072' => 58, 'brand_id_072' => 3, 'name_072' => 'TOUS NEON CANDY', 'active_072' => true], ['id_072' => 59, 'brand_id_072' => 1, 'name_072' => 'HWN Tattoo', 'active_072' => true], ['id_072' => 60, 'brand_id_072' => 3, 'name_072' => 'TOUS Floral Touch', 'active_072' => true], ['id_072' => 61, 'brand_id_072' => 4, 'name_072' => 'Les Absolus', 'active_072' => true], ['id_072' => 62, 'brand_id_072' => 7, 'name_072' => 'Logo DESIGUAL', 'active_072' => true], ['id_072' => 63, 'brand_id_072' => 3, 'name_072' => 'Happy', 'active_072' => true]]);
 }