diff --git a/ci4/app/Config/Routes.php b/ci4/app/Config/Routes.php index a55dbbde..a5859bb6 100644 --- a/ci4/app/Config/Routes.php +++ b/ci4/app/Config/Routes.php @@ -457,7 +457,7 @@ $routes->group('clientecontactos', ['namespace' => 'App\Controllers\Clientes'], $routes->resource('ClienteContactos', ['namespace' => 'App\Controllers\Tarifas', 'controller' => 'ClienteContactos', 'except' => 'show,new,create,update']); -$routes->group('Cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) { +$routes->group('cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) { $routes->get('', 'Cosidotapablanda::index', ['as' => 'cosidotapablandaList']); $routes->get('add', 'Cosidotapablanda::add', ['as' => 'newCosidotapablanda']); $routes->post('add', 'Cosidotapablanda::add', ['as' => 'createCosidotapablanda']); @@ -468,7 +468,7 @@ $routes->group('Cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos $routes->post('allmenuitems', 'Cosidotapablanda::allItemsSelect', ['as' => 'select2ItemsOfCosidotapablanda']); $routes->post('menuitems', 'Cosidotapablanda::menuItems', ['as' => 'menuItemsOfCosidotapablanda']); }); -$routes->resource('Cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos', 'controller' => 'Cosidotapablanda', 'except' => 'show,new,create,update']); +$routes->resource('cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos', 'controller' => 'Cosidotapablanda', 'except' => 'show,new,create,update']); /* * -------------------------------------------------------------------- diff --git a/ci4/app/Controllers/Configuracion/Papelformato.php b/ci4/app/Controllers/Configuracion/Papelformato.php new file mode 100644 index 00000000..df76ceb1 --- /dev/null +++ b/ci4/app/Controllers/Configuracion/Papelformato.php @@ -0,0 +1,271 @@ +viewData['pageTitle'] = lang('LgPapelFormatoes.moduleTitle'); + $this->viewData['usingSweetAlert'] = true; + parent::initController($request, $response, $logger); + } + + + public function index() { + + $viewData = [ + 'currentModule' => static::$controllerSlug, + 'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('LgPapelFormatoes.papelFormato')]), + 'papelFormatoEntity' => new PapelFormatoEntity(), + 'usingServerSideDataTable' => true, + + ]; + + $viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class + + return view(static::$viewPath.'viewPapelFormatoList', $viewData); + } + + + public function add() { + + + + $requestMethod = $this->request->getMethod(); + + if ($requestMethod === 'post') : + + $nullIfEmpty = true; // !(phpversion() >= '8.1'); + + $postData = $this->request->getPost(); + + $sanitizedData = $this->sanitized($postData, $nullIfEmpty); + + + $noException = true; + if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) : + + + if ($this->canValidate()) : + try { + $successfulResult = $this->model->skipValidation(true)->save($sanitizedData); + } catch (\Exception $e) { + $noException = false; + $this->dealWithException($e); + } + else: + $this->viewData['errorMessage'] = lang('Basic.global.formErr1', [mb_strtolower(lang('LgPapelFormatoes.papelFormato'))]); + $this->session->setFlashdata('formErrors', $this->model->errors()); + endif; + + $thenRedirect = true; // Change this to false if you want your user to stay on the form after submission + endif; + if ($noException && $successfulResult) : + + $id = $this->model->db->insertID(); + + $message = lang('Basic.global.saveSuccess', [mb_strtolower(lang('LgPapelFormatoes.papelFormato'))]).'.'; + $message .= anchor( "admin/papelformato/{$id}/edit" , lang('Basic.global.continueEditing').'?'); + $message = ucfirst(str_replace("'", "\'", $message)); + + if ($thenRedirect) : + if (!empty($this->indexRoute)) : + return redirect()->to(route_to( $this->indexRoute ) )->with('sweet-success', $message); + else: + return $this->redirect2listView('sweet-success', $message); + endif; + else: + $this->session->setFlashData('sweet-success', $message); + endif; + + endif; // $noException && $successfulResult + + endif; // ($requestMethod === 'post') + + $this->viewData['papelFormatoEntity'] = isset($sanitizedData) ? new PapelFormatoEntity($sanitizedData) : new PapelFormatoEntity(); + + $this->viewData['formAction'] = route_to('createPapelFormato'); + + $this->viewData['boxTitle'] = lang('Basic.global.addNew').' '.lang('LgPapelFormatoes.moduleTitle').' '.lang('Basic.global.addNewSuffix'); + + + return $this->displayForm(__METHOD__); + } // end function add() + + public function edit($requestedId = null) { + + if ($requestedId == null) : + return $this->redirect2listView(); + endif; + $id = filter_var($requestedId, FILTER_SANITIZE_URL); + $papelFormatoEntity = $this->model->find($id); + + if ($papelFormatoEntity == false) : + $message = lang('Basic.global.notFoundWithIdErr', [mb_strtolower(lang('LgPapelFormatoes.papelFormato')), $id]); + return $this->redirect2listView('sweet-error', $message); + endif; + + $requestMethod = $this->request->getMethod(); + + if ($requestMethod === 'post') : + + $nullIfEmpty = true; // !(phpversion() >= '8.1'); + + $postData = $this->request->getPost(); + + $sanitizedData = $this->sanitized($postData, $nullIfEmpty); + + + + $noException = true; + if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) : + + + + if ($this->canValidate()) : + try { + $successfulResult = $this->model->skipValidation(true)->update($id, $sanitizedData); + } catch (\Exception $e) { + $noException = false; + $this->dealWithException($e); + } + else: + $this->viewData['warningMessage'] = lang('Basic.global.formErr1', [mb_strtolower(lang('LgPapelFormatoes.papelFormato'))]); + $this->session->setFlashdata('formErrors', $this->model->errors()); + + endif; + + $papelFormatoEntity->fill($sanitizedData); + + $thenRedirect = true; + endif; + if ($noException && $successfulResult) : + $id = $papelFormatoEntity->id ?? $id; + $message = lang('Basic.global.updateSuccess', [mb_strtolower(lang('LgPapelFormatoes.papelFormato'))]).'.'; + $message .= anchor( "admin/papelformato/{$id}/edit" , lang('Basic.global.continueEditing').'?'); + $message = ucfirst(str_replace("'", "\'", $message)); + + if ($thenRedirect) : + if (!empty($this->indexRoute)) : + return redirect()->to(route_to( $this->indexRoute ) )->with('sweet-success', $message); + else: + return $this->redirect2listView('sweet-success', $message); + endif; + else: + $this->session->setFlashData('sweet-success', $message); + endif; + + endif; // $noException && $successfulResult + endif; // ($requestMethod === 'post') + + $this->viewData['papelFormatoEntity'] = $papelFormatoEntity; + + $this->viewData['formAction'] = route_to('updatePapelFormato', $id); + + $this->viewData['boxTitle'] = lang('Basic.global.edit2').' '.lang('LgPapelFormatoes.moduleTitle').' '.lang('Basic.global.edit3'); + + + return $this->displayForm(__METHOD__, $id); + } // end function edit(...) + + + + public function datatable() { + if ($this->request->isAJAX()) { + $reqData = $this->request->getPost(); + if (!isset($reqData['draw']) || !isset($reqData['columns']) ) { + $errstr = 'No data available in response to this specific request.'; + $response = $this->respond(Collection::datatable( [], 0, 0, $errstr ), 400, $errstr); + return $response; + } + $start = $reqData['start'] ?? 0; + $length = $reqData['length'] ?? 5; + $search = $reqData['search']['value']; + $requestedOrder = $reqData['order']['0']['column'] ?? 1; + $order = PapelFormatoModel::SORTABLE[$requestedOrder > 0 ? $requestedOrder : 1]; + $dir = $reqData['order']['0']['dir'] ?? 'asc'; + + $resourceData = $this->model->getResource($search)->orderBy($order, $dir)->limit($length, $start)->get()->getResultObject(); + + return $this->respond(Collection::datatable( + $resourceData, + $this->model->getResource()->countAllResults(), + $this->model->getResource($search)->countAllResults() + )); + } else { + return $this->failUnauthorized('Invalid request', 403); + } + } + + public function allItemsSelect() { + if ($this->request->isAJAX()) { + $onlyActiveOnes = true; + $reqVal = $this->request->getPost('val') ?? 'id'; + $menu = $this->model->getAllForMenu($reqVal.', ancho', 'ancho', $onlyActiveOnes, false); + $nonItem = new \stdClass; + $nonItem->id = ''; + $nonItem->ancho = '- '.lang('Basic.global.None').' -'; + array_unshift($menu , $nonItem); + + $newTokenHash = csrf_hash(); + $csrfTokenName = csrf_token(); + $data = [ + 'menu' => $menu, + $csrfTokenName => $newTokenHash + ]; + return $this->respond($data); + } else { + return $this->failUnauthorized('Invalid request', 403); + } + } + + public function menuItems() { + if ($this->request->isAJAX()) { + $searchStr = goSanitize($this->request->getPost('searchTerm'))[0]; + $reqId = goSanitize($this->request->getPost('id'))[0]; + $reqText = goSanitize($this->request->getPost('text'))[0]; + $onlyActiveOnes = false; + $columns2select = [$reqId ?? 'id', $reqText ?? 'ancho']; + $onlyActiveOnes = false; + $menu = $this->model->getSelect2MenuItems($columns2select, $columns2select[1], $onlyActiveOnes, $searchStr); + $nonItem = new \stdClass; + $nonItem->id = ''; + $nonItem->text = '- '.lang('Basic.global.None').' -'; + array_unshift($menu , $nonItem); + + $newTokenHash = csrf_hash(); + $csrfTokenName = csrf_token(); + $data = [ + 'menu' => $menu, + $csrfTokenName => $newTokenHash + ]; + return $this->respond($data); + } else { + return $this->failUnauthorized('Invalid request', 403); + } + } + +} diff --git a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php index 10970090..6377dcd7 100644 --- a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php +++ b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php @@ -17,7 +17,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController protected $format = 'json'; protected static $singularObjectName = 'Cosido Tapa Blanda'; - protected static $singularObjectNameCc = 'cosidoTapaBlanda'; + protected static $singularObjectNameCc = 'Cosidotapablanda'; protected static $pluralObjectName = 'Cosidos Tapa Blanda'; protected static $pluralObjectNameCc = 'cosidosTapaBlanda'; @@ -32,7 +32,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger) { - $this->viewData['pageTitle'] = lang('Presupuestos.moduleTitle'); + $this->viewData['pageTitle'] = lang('Presupuestos.moduleTitleCosidoTB'); $this->viewData['usingSweetAlert'] = true; parent::initController($request, $response, $logger); $this->model = new PresupuestoModel(); @@ -125,13 +125,20 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController $this->viewData['presupuestoEntity'] = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity(); $this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null); + $this->viewData['incReiList'] = array('incidencia'=>lang('Presupuestos.incidencia'), 'reimpresion'=>lang('Presupuestos.reimpresion'), 'sin_cargo'=>lang('Presupuestos.sinCargo')); + $this->viewData['paisList'] = $this->getPaisListItems(); + $this->viewData['papelFormatoList'] = $this->getPapelFormatoListItems($presupuestoEntity->papel_formato_id ?? null); + + + /* + $this->viewData['formaPagoList'] = $this->getFormaPagoListItems(); $this->viewData['tiposImpresionList'] = $this->getTiposImpresionListItems($presupuestoEntity->tipo_impresion_id ?? null); $this->viewData['tipologiasLibroList'] = $this->getTipologiasLibroListItems($presupuestoEntity->tipologia_id ?? null); - $this->viewData['paisList'] = $this->getPaisListItems(); + $this->viewData['ubicacionLibroList'] = $this->getUbicacionLibroListItems($presupuestoEntity->ubicacion_id ?? null); $this->viewData['presupuestoEstadoList'] = $this->getPresupuestoEstadoListItems($presupuestoEntity->estado_id ?? null); - $this->viewData['papelFormatoList'] = $this->getPapelFormatoListItems($presupuestoEntity->papel_formato_id ?? null); + $this->viewData['papelGenericoList'] = $this->getPapelGenericoListItems($presupuestoEntity->paginas_negro_papel_id ?? null); $this->viewData['papelImpresionList'] = $this->getPapelImpresionListItems($presupuestoEntity->paginas_negro_papel_impresion_id ?? null); $this->viewData['maquinaList'] = $this->getMaquinaListItems($presupuestoEntity->paginas_negro_maquina_id ?? null); @@ -153,10 +160,10 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController $this->viewData['userList3'] = $this->getUserListItems3($presupuestoEntity->pedido_espera_user_id ?? null); $this->viewData['paginasCubiertaList'] = $this->getPaginasCubiertaOptions(); $this->viewData['paginasPortadaList'] = $this->getPaginasPortadaOptions(); + */ + $this->viewData['formAction'] = route_to('createCosidotapablanda'); - $this->viewData['formAction'] = route_to('createPresupuesto'); - - $this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('Presupuestos.moduleTitle') . ' ' . lang('Basic.global.addNewSuffix'); + $this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('Presupuestos.moduleTitleCosidoTB') . ' ' . lang('Basic.global.addNewSuffix'); return $this->displayForm(__METHOD__); @@ -463,6 +470,20 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController } + protected function getClienteListItems($selId = null) + { + $data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Clientes.cliente'))])]; + if (!empty($selId)) : + $clienteModel = model('App\Models\Clientes\ClienteModel'); + + $selOption = $clienteModel->where('id', $selId)->findColumn('nombre'); + if (!empty($selOption)) : + $data[$selId] = $selOption[0]; + endif; + endif; + return $data; + } + protected function getPaisListItems() { $paisModel = model('App\Models\Configuracion\PaisModel'); @@ -472,6 +493,19 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController return $data; } + protected function getPapelFormatoListItems($selId = null) + { + $papelFormatoModel = model('App\Models\Configuracion\PapelFormatoModel'); + $data = $papelFormatoModel->getElementsForMenu(); + array_unshift($data, (object)['id'=>'', 'tamanio' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Presupuestos.papelFormatoId'))])]); + return $data; + } + + /* + + + + protected function getUbicacionLibroListItems($selId = null) { @@ -618,19 +652,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController } - protected function getPapelFormatoListItems($selId = null) - { - $data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('LgPapelFormatoes.papelFormato'))])]; - if (!empty($selId)) : - $papelFormatoModel = model('App\Models\Configuracion\PapelFormatoModel'); - - $selOption = $papelFormatoModel->where('id', $selId)->findColumn('id'); - if (!empty($selOption)) : - $data[$selId] = $selOption[0]; - endif; - endif; - return $data; - } protected function getMaquinaListItems2($selId = null) @@ -798,21 +819,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController } - protected function getClienteListItems($selId = null) - { - $data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Clientes.cliente'))])]; - if (!empty($selId)) : - $clienteModel = model('App\Models\Clientes\ClienteModel'); - - $selOption = $clienteModel->where('id', $selId)->findColumn('nombre'); - if (!empty($selOption)) : - $data[$selId] = $selOption[0]; - endif; - endif; - return $data; - } - - + protected function getMaquinaListItems4($selId = null) { $data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Maquinas.maquina'))])]; @@ -879,4 +886,5 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController ]; return $paginasPortadaOptions; } + */ } diff --git a/ci4/app/Controllers/Test.php b/ci4/app/Controllers/Test.php index 04f3b0b2..baf57e5f 100644 --- a/ci4/app/Controllers/Test.php +++ b/ci4/app/Controllers/Test.php @@ -15,11 +15,10 @@ class Test extends BaseController public function index() { - /* - $papel = new Papelesimpresion(); - var_dump($papel->datatablePG());*/ - $session = session(); - var_dump($session->id_user); + $papelFormatoModel = model('App\Models\Configuracion\PapelFormatoModel'); + $data = $papelFormatoModel->getElementsForMenu(); + var_dump($data); + } } \ No newline at end of file diff --git a/ci4/app/Entities/Configuracion/PapelFormatoEntity.php b/ci4/app/Entities/Configuracion/PapelFormatoEntity.php new file mode 100644 index 00000000..fa6c3d37 --- /dev/null +++ b/ci4/app/Entities/Configuracion/PapelFormatoEntity.php @@ -0,0 +1,22 @@ + null, + "ancho" => null, + "alto" => null, + "is_deleted" => 0, + "deleted_at" => null, + "created_at" => null, + "updated_at" => null, + ]; + protected $casts = [ + "ancho" => "float", + "alto" => "float", + "is_deleted" => "int", + ]; +} diff --git a/ci4/app/Entities/Presupuestos/PresupuestoEntity.php b/ci4/app/Entities/Presupuestos/PresupuestoEntity.php index 4aeaca6a..6d25d836 100644 --- a/ci4/app/Entities/Presupuestos/PresupuestoEntity.php +++ b/ci4/app/Entities/Presupuestos/PresupuestoEntity.php @@ -29,7 +29,7 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity "papel_formato_personalizado" => false, "papel_formato_ancho" => null, "papel_formato_alto" => null, - "titulo" => "titulo", + "titulo" => "", "autor" => null, "coleccion" => null, "numero_edicion" => null, @@ -43,7 +43,7 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity "sobrecubiertas" => false, "sobrecubiertas_ancho" => 0.0, "merma" => null, - "merma_cubierta" => 6.0, + "merma_portada" => 6.0, "imagenes_bn_interior" => false, "comentarios" => null, "comentarios_safekat" => null, @@ -201,7 +201,7 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity "sobrecubiertas" => "boolean", "sobrecubiertas_ancho" => "float", "merma" => "float", - "merma_cubierta" => "float", + "merma_portada" => "float", "imagenes_bn_interior" => "boolean", "en_produccion" => "boolean", "en_espera" => "boolean", diff --git a/ci4/app/Language/en/Presupuestos.php b/ci4/app/Language/en/Presupuestos.php index 10de2d3e..73bfeec8 100644 --- a/ci4/app/Language/en/Presupuestos.php +++ b/ci4/app/Language/en/Presupuestos.php @@ -3,770 +3,804 @@ return [ - '4x0' => '4x0', - '4x4' => '4x4', - 'aprobadoAt' => 'Aprobado At', - 'aprobadoJsonData' => 'Aprobado Json Data', - 'aprobadoUserId' => 'Aprobado User', - 'autor' => 'Autor', - 'baseImponible' => 'Base Imponible', - 'catalogoId' => 'Catalogo ID', - 'causaCancelacion' => 'Causa Cancelacion', - 'clienteId' => 'Cliente', - 'coleccion' => 'Coleccion', - 'comentarios' => 'Comentarios', - 'comentariosPdf' => 'Comentarios Pdf', - 'comentariosSafekat' => 'Comentarios Safekat', - 'comentariosTarifa' => 'Comentarios Tarifa', - 'comparadorJsonData' => 'Comparador Json Data', - 'cosido' => 'Cosido', - 'createdAt' => 'Created At', - 'cubiertas' => 'Cubiertas', - 'cubiertasAncho' => 'Cubiertas Ancho', - 'deletedAt' => 'Deleted At', - 'descuento' => 'Descuento', - 'enEspera' => 'EN Espera', - 'enProduccion' => 'EN Produccion', - 'enviosRecogeCliente' => 'Envios Recoge Cliente', - 'estadoId' => 'Estado', - 'facturaId' => 'Factura ID', - 'fechaEncuardenadoAt' => 'Fecha Encuardenado At', - 'fechaEntregaRealAt' => 'Fecha Entrega Real At', - 'fechaEntregaRealWarning' => 'Fecha Entrega Real Warning', - 'fechaExternoAt' => 'Fecha Externo At', - 'fechaFerroSubidoAt' => 'Fecha Ferro Subido At', - 'fechaImpresionAt' => 'Fecha Impresion At', - 'ferro' => 'Ferro', - 'ferroDigital' => 'Ferro Digital', - 'formaPagoId' => 'Forma Pago', - 'forzarTotal' => 'Forzar Total', - 'id' => 'ID', - 'imagenesBnInterior' => 'Imagenes Bn Interior', - 'incRei' => 'Inc Rei', - 'isDeleted' => 'Is Deleted', - 'isbn' => 'Isbn', - 'isdig' => 'Isdig', - 'lomo' => 'Lomo', - 'marcapaginas' => 'Marcapaginas', - 'margen' => 'Margen', - 'margenExtra' => 'Margen Extra', - 'margenManual' => 'Margen Manual', - 'merma' => 'Merma', - 'mermaPortada' => 'Merma Portada', - 'modoComparador' => 'Modo Comparador', - 'moduleTitle' => 'Presupuestos', - 'numeroEdicion' => 'Numero Edicion', - 'paginas' => 'Paginas', - 'paginasColor' => 'Paginas Color', - 'paginasColorCheckImpresionTotal' => 'Paginas Color Check Impresion Total', - 'paginasColorCheckPapelTotal' => 'Paginas Color Check Papel Total', - 'paginasColorClick' => 'Paginas Color Click', - 'paginasColorFormaId' => 'Paginas Color Forma ID', - 'paginasColorGramaje' => 'Paginas Color Gramaje', - 'paginasColorLibro' => 'Paginas Color Libro', - 'paginasColorMano' => 'Paginas Color Mano', - 'paginasColorMaquinaId' => 'Paginas Color Maquina', - 'paginasColorPapelId' => 'Paginas Color Papel', - 'paginasColorPapelImpresionId' => 'Paginas Color Papel Impresion', - 'paginasColorPedido' => 'Paginas Color Pedido', - 'paginasColorPeso' => 'Paginas Color Peso', - 'paginasColorPliegosLibro' => 'Paginas Color Pliegos Libro', - 'paginasColorPliegosPedido' => 'Paginas Color Pliegos Pedido', - 'paginasColorPliegosPrecio' => 'Paginas Color Pliegos Precio', - 'paginasColorPosicion' => 'Paginas Color Posicion', - 'paginasColorPrecio' => 'Paginas Color Precio', - 'paginasColorTarifaImpresionId' => 'Paginas Color Tarifa Impresion', - 'paginasCubierta' => 'Paginas Cubierta', - 'paginasCubiertaCheckImpresionTotal' => 'Paginas Cubierta Check Impresion Total', - 'paginasCubiertaCheckPapelTotal' => 'Paginas Cubierta Check Papel Total', - 'paginasCubiertaClick' => 'Paginas Cubierta Click', - 'paginasCubiertaFormaId' => 'Paginas Cubierta Forma ID', - 'paginasCubiertaGramaje' => 'Paginas Cubierta Gramaje', - 'paginasCubiertaLibro' => 'Paginas Cubierta Libro', - 'paginasCubiertaMano' => 'Paginas Cubierta Mano', - 'paginasCubiertaMaquinaId' => 'Paginas Cubierta Maquina', - 'paginasCubiertaPapelId' => 'Paginas Cubierta Papel', - 'paginasCubiertaPapelImpresionId' => 'Paginas Cubierta Papel Impresion', - 'paginasCubiertaPedido' => 'Paginas Cubierta Pedido', - 'paginasCubiertaPeso' => 'Paginas Cubierta Peso', - 'paginasCubiertaPliegosLibro' => 'Paginas Cubierta Pliegos Libro', - 'paginasCubiertaPliegosPedido' => 'Paginas Cubierta Pliegos Pedido', - 'paginasCubiertaPliegosPrecio' => 'Paginas Cubierta Pliegos Precio', - 'paginasCubiertaPrecio' => 'Paginas Cubierta Precio', - 'paginasCubiertaTarifaImpresionId' => 'Paginas Cubierta Tarifa Impresion', - 'paginasNegro' => 'Paginas Negro', - 'paginasNegroCheckImpresionTotal' => 'Paginas Negro Check Impresion Total', - 'paginasNegroCheckPapelTotal' => 'Paginas Negro Check Papel Total', - 'paginasNegroClick' => 'Paginas Negro Click', - 'paginasNegroFormaId' => 'Paginas Negro Forma ID', - 'paginasNegroGramaje' => 'Paginas Negro Gramaje', - 'paginasNegroHq' => 'Paginas Negro Hq', - 'paginasNegroLibro' => 'Paginas Negro Libro', - 'paginasNegroMano' => 'Paginas Negro Mano', - 'paginasNegroMaquinaId' => 'Paginas Negro Maquina', - 'paginasNegroPapelId' => 'Paginas Negro Papel', - 'paginasNegroPapelImpresionId' => 'Paginas Negro Papel Impresion', - 'paginasNegroPedido' => 'Paginas Negro Pedido', - 'paginasNegroPeso' => 'Paginas Negro Peso', - 'paginasNegroPliegosLibro' => 'Paginas Negro Pliegos Libro', - 'paginasNegroPliegosPedido' => 'Paginas Negro Pliegos Pedido', - 'paginasNegroPliegosPrecio' => 'Paginas Negro Pliegos Precio', - 'paginasNegroPrecio' => 'Paginas Negro Precio', - 'paginasNegroTarifaImpresionId' => 'Paginas Negro Tarifa Impresion', - 'paginasPortada' => 'Paginas Portada', - 'paginasPortadaCheckImpresionTotal' => 'Paginas Portada Check Impresion Total', - 'paginasPortadaCheckPapelTotal' => 'Paginas Portada Check Papel Total', - 'paginasPortadaClick' => 'Paginas Portada Click', - 'paginasPortadaFormaId' => 'Paginas Portada Forma ID', - 'paginasPortadaGramaje' => 'Paginas Portada Gramaje', - 'paginasPortadaLibro' => 'Paginas Portada Libro', - 'paginasPortadaMano' => 'Paginas Portada Mano', - 'paginasPortadaMaquinaId' => 'Paginas Portada Maquina', - 'paginasPortadaPapelId' => 'Paginas Portada Papel', - 'paginasPortadaPapelImpresionId' => 'Paginas Portada Papel Impresion', - 'paginasPortadaPedido' => 'Paginas Portada Pedido', - 'paginasPortadaPeso' => 'Paginas Portada Peso', - 'paginasPortadaPliegosLibro' => 'Paginas Portada Pliegos Libro', - 'paginasPortadaPliegosPedido' => 'Paginas Portada Pliegos Pedido', - 'paginasPortadaPliegosPrecio' => 'Paginas Portada Pliegos Precio', - 'paginasPortadaPrecio' => 'Paginas Portada Precio', - 'paginasPortadaTarifaImpresionId' => 'Paginas Portada Tarifa Impresion', - 'paisId' => 'Pais', - 'papelFormatoAlto' => 'Papel Formato Alto', - 'papelFormatoAncho' => 'Papel Formato Ancho', - 'papelFormatoId' => 'Papel Formato', - 'papelFormatoPersonalizado' => 'Papel Formato Personalizado', - 'pedidoEsperaFecha' => 'Pedido Espera Fecha', - 'pedidoEsperaUserId' => 'Pedido Espera User', - 'pedidoLibroConjuntoId' => 'Pedido Libro Conjunto ID', - 'presupuesto' => 'Presupuesto', - 'presupuestoList' => 'Presupuesto List', - 'presupuestos' => 'Presupuestos', - 'recogerEnTaller' => 'Recoger EN Taller', - 'referenciaCliente' => 'Referencia Cliente', - 'responsable' => 'Responsable', - 'serieId' => 'Serie ID', - 'solapas' => 'Solapas', - 'solapasAncho' => 'Solapas Ancho', - 'tarifaClienteId' => 'Tarifa Cliente ID', - 'tipoImpresionId' => 'Tipo Impresion', - 'tipologiaId' => 'Tipologia', - 'tirada' => 'Tirada', - 'tiradaAlternativaJsonData' => 'Tirada Alternativa Json Data', - 'titulo' => 'Titulo', - 'total' => 'Total', - 'totalAcabado' => 'Total Acabado', - 'totalCalculado' => 'Total Calculado', - 'totalClick' => 'Total Click', - 'totalConfirmado' => 'Total Confirmado', - 'totalConfirmadoUpdateAt' => 'Total Confirmado Update At', - 'totalConfirmadoUserId' => 'Total Confirmado User', - 'totalDescuento' => 'Total Descuento', - 'totalEnvios' => 'Total Envios', - 'totalManipulado' => 'Total Manipulado', - 'totalMargen' => 'Total Margen', - 'totalMargenExtra' => 'Total Margen Extra', - 'totalPedido' => 'Total Pedido', - 'totalPeso' => 'Total Peso', - 'totalPreimpresion' => 'Total Preimpresion', - 'totalPreimpresionMargen' => 'Total Preimpresion Margen', - 'totalPresupuesto' => 'Total Presupuesto', - 'ubicacionId' => 'Ubicacion', - 'updatedAt' => 'Updated At', - 'userCreatedId' => 'User Created', - 'userUpdateId' => 'User Update', - 'version' => 'Version', - 'wsExternoJsonData' => 'Ws Externo Json Data', - 'validation' => [ - 'aprobado_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', - - ], - - 'aprobado_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - - ], - - 'base_imponible' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - - ], - - 'catalogo_id' => [ - 'integer' => 'The {field} field must contain an integer.', - - ], - - 'causa_cancelacion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - - ], + 'moduleTitleCosidoTB' => 'Budget for Softcover Stitched Book', + + 'presupuestoCosidotapablandaList' => 'List of budgets for Softcover Stitched Books', + 'presupuesto' => 'Budget', + + 'datosPresupuesto' => 'Budget information', + 'datosLibro' => 'Book information', + + 'id' => 'Budget Number', + 'created_at' => 'Date', + 'clienteId' => 'Cliend', + 'comercial' => 'Sales agent', + 'titulo' => 'Title', + 'paisId' => 'País', + 'incRei' => 'Incident \ Reprint', + 'paginas' => 'Pages', + 'tirada' => 'Print', + 'totalPedido' => 'Budget total', + 'presupuestoEstado' => 'State', + 'presupuestoEstadoBorrador' => 'Draft', + 'presupuestoEstadoAceptado' => 'Acepted', + 'incidencia' => 'Incident', + 'reimpresion' => 'Reprint', + 'reimpresion' => 'Free of charge', + 'autor' => 'Author', + 'coleccion' => 'Collection', + 'numeroEdicion' => 'Edition number', + 'isbn' => 'ISBN', + 'referenciaCliente' => 'Customer reference', + 'papelFormatoId' => "Size", + 'papelFormatoPersonalizado' => 'Custom size', + 'papelFormatoAncho' => 'Width', + 'papelFormatoAlto' => 'Height', + 'cosido' => 'Sewn', + 'ferro' => 'Ferro', + 'ferroDigital' => 'Digital Ferro', + 'prototipo' => 'Prototype', + 'imagenesBnInterior' => 'B/W pictures inside', + 'recogerEnTaller' => 'Pick up in workshop', + 'marcapaginas' => 'Bookmark', + + + /* '4x0' => '4x0', + '4x4' => '4x4', + 'aprobadoAt' => 'Aprobado At', + 'aprobadoJsonData' => 'Aprobado Json Data', + 'aprobadoUserId' => 'Aprobado User', + 'autor' => 'Autor', + 'baseImponible' => 'Base Imponible', + 'catalogoId' => 'Catalogo ID', + 'causaCancelacion' => 'Causa Cancelacion', + 'coleccion' => 'Coleccion', + 'comentarios' => 'Comentarios', + 'comentariosPdf' => 'Comentarios Pdf', + 'comentariosSafekat' => 'Comentarios Safekat', + 'comentariosTarifa' => 'Comentarios Tarifa', + 'comparadorJsonData' => 'Comparador Json Data', + 'cosido' => 'Cosido', + 'createdAt' => 'Created At', + 'cubiertas' => 'Cubiertas', + 'cubiertasAncho' => 'Cubiertas Ancho', + 'deletedAt' => 'Deleted At', + 'descuento' => 'Descuento', + 'enEspera' => 'EN Espera', + 'enProduccion' => 'EN Produccion', + 'enviosRecogeCliente' => 'Envios Recoge Cliente', + 'estadoId' => 'Estado', + 'facturaId' => 'Factura ID', + 'fechaEncuardenadoAt' => 'Fecha Encuardenado At', + 'fechaEntregaRealAt' => 'Fecha Entrega Real At', + 'fechaEntregaRealWarning' => 'Fecha Entrega Real Warning', + 'fechaExternoAt' => 'Fecha Externo At', + 'fechaFerroSubidoAt' => 'Fecha Ferro Subido At', + 'fechaImpresionAt' => 'Fecha Impresion At', + 'ferro' => 'Ferro', + 'ferroDigital' => 'Ferro Digital', + 'formaPagoId' => 'Forma Pago', + 'forzarTotal' => 'Forzar Total', + 'imagenesBnInterior' => 'Imagenes Bn Interior', + 'isDeleted' => 'Is Deleted', + 'isbn' => 'Isbn', + 'isdig' => 'Isdig', + 'lomo' => 'Lomo', + 'marcapaginas' => 'Marcapaginas', + 'margen' => 'Margen', + 'margenExtra' => 'Margen Extra', + 'margenManual' => 'Margen Manual', + 'merma' => 'Merma', + 'mermaPortada' => 'Merma Portada', + 'modoComparador' => 'Modo Comparador', + 'moduleTitle' => 'Presupuestos', + 'numeroEdicion' => 'Numero Edicion', + 'paginasColor' => 'Paginas Color', + 'paginasColorCheckImpresionTotal' => 'Paginas Color Check Impresion Total', + 'paginasColorCheckPapelTotal' => 'Paginas Color Check Papel Total', + 'paginasColorClick' => 'Paginas Color Click', + 'paginasColorFormaId' => 'Paginas Color Forma ID', + 'paginasColorGramaje' => 'Paginas Color Gramaje', + 'paginasColorLibro' => 'Paginas Color Libro', + 'paginasColorMano' => 'Paginas Color Mano', + 'paginasColorMaquinaId' => 'Paginas Color Maquina', + 'paginasColorPapelId' => 'Paginas Color Papel', + 'paginasColorPapelImpresionId' => 'Paginas Color Papel Impresion', + 'paginasColorPedido' => 'Paginas Color Pedido', + 'paginasColorPeso' => 'Paginas Color Peso', + 'paginasColorPliegosLibro' => 'Paginas Color Pliegos Libro', + 'paginasColorPliegosPedido' => 'Paginas Color Pliegos Pedido', + 'paginasColorPliegosPrecio' => 'Paginas Color Pliegos Precio', + 'paginasColorPosicion' => 'Paginas Color Posicion', + 'paginasColorPrecio' => 'Paginas Color Precio', + 'paginasColorTarifaImpresionId' => 'Paginas Color Tarifa Impresion', + 'paginasCubierta' => 'Paginas Cubierta', + 'paginasCubiertaCheckImpresionTotal' => 'Paginas Cubierta Check Impresion Total', + 'paginasCubiertaCheckPapelTotal' => 'Paginas Cubierta Check Papel Total', + 'paginasCubiertaClick' => 'Paginas Cubierta Click', + 'paginasCubiertaFormaId' => 'Paginas Cubierta Forma ID', + 'paginasCubiertaGramaje' => 'Paginas Cubierta Gramaje', + 'paginasCubiertaLibro' => 'Paginas Cubierta Libro', + 'paginasCubiertaMano' => 'Paginas Cubierta Mano', + 'paginasCubiertaMaquinaId' => 'Paginas Cubierta Maquina', + 'paginasCubiertaPapelId' => 'Paginas Cubierta Papel', + 'paginasCubiertaPapelImpresionId' => 'Paginas Cubierta Papel Impresion', + 'paginasCubiertaPedido' => 'Paginas Cubierta Pedido', + 'paginasCubiertaPeso' => 'Paginas Cubierta Peso', + 'paginasCubiertaPliegosLibro' => 'Paginas Cubierta Pliegos Libro', + 'paginasCubiertaPliegosPedido' => 'Paginas Cubierta Pliegos Pedido', + 'paginasCubiertaPliegosPrecio' => 'Paginas Cubierta Pliegos Precio', + 'paginasCubiertaPrecio' => 'Paginas Cubierta Precio', + 'paginasCubiertaTarifaImpresionId' => 'Paginas Cubierta Tarifa Impresion', + 'paginasNegro' => 'Paginas Negro', + 'paginasNegroCheckImpresionTotal' => 'Paginas Negro Check Impresion Total', + 'paginasNegroCheckPapelTotal' => 'Paginas Negro Check Papel Total', + 'paginasNegroClick' => 'Paginas Negro Click', + 'paginasNegroFormaId' => 'Paginas Negro Forma ID', + 'paginasNegroGramaje' => 'Paginas Negro Gramaje', + 'paginasNegroHq' => 'Paginas Negro Hq', + 'paginasNegroLibro' => 'Paginas Negro Libro', + 'paginasNegroMano' => 'Paginas Negro Mano', + 'paginasNegroMaquinaId' => 'Paginas Negro Maquina', + 'paginasNegroPapelId' => 'Paginas Negro Papel', + 'paginasNegroPapelImpresionId' => 'Paginas Negro Papel Impresion', + 'paginasNegroPedido' => 'Paginas Negro Pedido', + 'paginasNegroPeso' => 'Paginas Negro Peso', + 'paginasNegroPliegosLibro' => 'Paginas Negro Pliegos Libro', + 'paginasNegroPliegosPedido' => 'Paginas Negro Pliegos Pedido', + 'paginasNegroPliegosPrecio' => 'Paginas Negro Pliegos Precio', + 'paginasNegroPrecio' => 'Paginas Negro Precio', + 'paginasNegroTarifaImpresionId' => 'Paginas Negro Tarifa Impresion', + 'paginasPortada' => 'Paginas Portada', + 'paginasPortadaCheckImpresionTotal' => 'Paginas Portada Check Impresion Total', + 'paginasPortadaCheckPapelTotal' => 'Paginas Portada Check Papel Total', + 'paginasPortadaClick' => 'Paginas Portada Click', + 'paginasPortadaFormaId' => 'Paginas Portada Forma ID', + 'paginasPortadaGramaje' => 'Paginas Portada Gramaje', + 'paginasPortadaLibro' => 'Paginas Portada Libro', + 'paginasPortadaMano' => 'Paginas Portada Mano', + 'paginasPortadaMaquinaId' => 'Paginas Portada Maquina', + 'paginasPortadaPapelId' => 'Paginas Portada Papel', + 'paginasPortadaPapelImpresionId' => 'Paginas Portada Papel Impresion', + 'paginasPortadaPedido' => 'Paginas Portada Pedido', + 'paginasPortadaPeso' => 'Paginas Portada Peso', + 'paginasPortadaPliegosLibro' => 'Paginas Portada Pliegos Libro', + 'paginasPortadaPliegosPedido' => 'Paginas Portada Pliegos Pedido', + 'paginasPortadaPliegosPrecio' => 'Paginas Portada Pliegos Precio', + 'paginasPortadaPrecio' => 'Paginas Portada Precio', + 'paginasPortadaTarifaImpresionId' => 'Paginas Portada Tarifa Impresion', + 'papelFormatoAlto' => 'Papel Formato Alto', + 'papelFormatoAncho' => 'Papel Formato Ancho', + 'papelFormatoId' => 'Papel Formato', + 'papelFormatoPersonalizado' => 'Papel Formato Personalizado', + 'pedidoEsperaFecha' => 'Pedido Espera Fecha', + 'pedidoEsperaUserId' => 'Pedido Espera User', + 'pedidoLibroConjuntoId' => 'Pedido Libro Conjunto ID', + 'presupuesto' => 'Presupuesto', + 'presupuestoList' => 'Presupuesto List', + 'presupuestos' => 'Presupuestos', + 'recogerEnTaller' => 'Recoger EN Taller', + 'referenciaCliente' => 'Referencia Cliente', + 'responsable' => 'Responsable', + 'serieId' => 'Serie ID', + 'solapas' => 'Solapas', + 'solapasAncho' => 'Solapas Ancho', + 'tarifaClienteId' => 'Tarifa Cliente ID', + 'tipoImpresionId' => 'Tipo Impresion', + 'tipologiaId' => 'Tipologia', + 'tiradaAlternativaJsonData' => 'Tirada Alternativa Json Data', + 'total' => 'Total', + 'totalAcabado' => 'Total Acabado', + 'totalCalculado' => 'Total Calculado', + 'totalClick' => 'Total Click', + 'totalConfirmado' => 'Total Confirmado', + 'totalConfirmadoUpdateAt' => 'Total Confirmado Update At', + 'totalConfirmadoUserId' => 'Total Confirmado User', + 'totalDescuento' => 'Total Descuento', + 'totalEnvios' => 'Total Envios', + 'totalManipulado' => 'Total Manipulado', + 'totalMargen' => 'Total Margen', + 'totalMargenExtra' => 'Total Margen Extra', + 'totalPeso' => 'Total Peso', + 'totalPreimpresion' => 'Total Preimpresion', + 'totalPreimpresionMargen' => 'Total Preimpresion Margen', + 'totalPresupuesto' => 'Total Presupuesto', + 'ubicacionId' => 'Ubicacion', + 'updatedAt' => 'Updated At', + 'userCreatedId' => 'User Created', + 'userUpdateId' => 'User Update', + 'version' => 'Version', + 'wsExternoJsonData' => 'Ws Externo Json Data', + 'validation' => [ + 'aprobado_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', + + ], + + 'aprobado_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + + ], + + 'base_imponible' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + + ], + + 'catalogo_id' => [ + 'integer' => 'The {field} field must contain an integer.', + + ], + + 'causa_cancelacion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + + ], - 'coleccion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'coleccion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'comparador_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'comparador_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'factura_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'factura_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'fecha_encuardenado_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_encuardenado_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_entrega_real_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_entrega_real_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_externo_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_externo_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_ferro_subido_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_ferro_subido_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_impresion_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_impresion_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'inc_rei' => [ - 'integer' => 'The {field} field must contain an integer.', + 'inc_rei' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'isbn' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'isbn' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'lomo' => [ - 'integer' => 'The {field} field must contain an integer.', + 'lomo' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'margen_manual' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'margen_manual' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'numero_edicion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'numero_edicion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'paginas_color' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_color' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_color_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_color_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_color_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_posicion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'paginas_color_posicion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'paginas_color_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_cubierta_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_cubierta_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_negro' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_negro_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_negro_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_negro_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_portada_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_portada_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'papel_formato_alto' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'papel_formato_alto' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'papel_formato_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'papel_formato_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'pedido_espera_fecha' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'pedido_espera_fecha' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'pedido_libro_conjunto_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'pedido_libro_conjunto_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'responsable' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'responsable' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'serie_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'serie_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'tarifa_cliente_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'tarifa_cliente_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'tirada_alternativa_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'tirada_alternativa_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'total' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_acabado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_acabado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_calculado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_calculado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_confirmado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_confirmado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_confirmado_update_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'total_confirmado_update_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'total_descuento' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_descuento' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_envios' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_envios' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_manipulado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_manipulado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_margen_extra' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_margen_extra' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_preimpresion' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_preimpresion' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_preimpresion_margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_preimpresion_margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_presupuesto' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_presupuesto' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'user_update_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'user_update_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'ws_externo_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'ws_externo_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'autor' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'autor' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_pdf' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_pdf' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_safekat' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_safekat' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_tarifa' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_tarifa' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'cubiertas_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'cubiertas_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'descuento' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'descuento' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'forzar_total' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'forzar_total' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'is_deleted' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'is_deleted' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'margen_extra' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'margen_extra' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'merma' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'merma' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'merma_cubierta' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'merma_portada' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'paginas' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_cubierta' => [ - 'in_list' => 'The {field} field must be one of: {param}.', - 'required' => 'The {field} field is required.', + 'paginas_cubierta' => [ + 'in_list' => 'The {field} field must be one of: {param}.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_portada' => [ - 'in_list' => 'The {field} field must be one of: {param}.', - 'required' => 'The {field} field is required.', + 'paginas_portada' => [ + 'in_list' => 'The {field} field must be one of: {param}.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_portada_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'paginas_portada_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'referencia_cliente' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'referencia_cliente' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'solapas_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'solapas_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'tirada' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'tirada' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'titulo' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'titulo' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'user_created_id' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'user_created_id' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], - - 'version' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', - - ], + ], + 'version' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', ], -]; \ No newline at end of file + ], */ + + +]; diff --git a/ci4/app/Language/es/Presupuestos.php b/ci4/app/Language/es/Presupuestos.php index 10de2d3e..b687285d 100644 --- a/ci4/app/Language/es/Presupuestos.php +++ b/ci4/app/Language/es/Presupuestos.php @@ -3,770 +3,804 @@ return [ - '4x0' => '4x0', - '4x4' => '4x4', - 'aprobadoAt' => 'Aprobado At', - 'aprobadoJsonData' => 'Aprobado Json Data', - 'aprobadoUserId' => 'Aprobado User', - 'autor' => 'Autor', - 'baseImponible' => 'Base Imponible', - 'catalogoId' => 'Catalogo ID', - 'causaCancelacion' => 'Causa Cancelacion', - 'clienteId' => 'Cliente', - 'coleccion' => 'Coleccion', - 'comentarios' => 'Comentarios', - 'comentariosPdf' => 'Comentarios Pdf', - 'comentariosSafekat' => 'Comentarios Safekat', - 'comentariosTarifa' => 'Comentarios Tarifa', - 'comparadorJsonData' => 'Comparador Json Data', - 'cosido' => 'Cosido', - 'createdAt' => 'Created At', - 'cubiertas' => 'Cubiertas', - 'cubiertasAncho' => 'Cubiertas Ancho', - 'deletedAt' => 'Deleted At', - 'descuento' => 'Descuento', - 'enEspera' => 'EN Espera', - 'enProduccion' => 'EN Produccion', - 'enviosRecogeCliente' => 'Envios Recoge Cliente', - 'estadoId' => 'Estado', - 'facturaId' => 'Factura ID', - 'fechaEncuardenadoAt' => 'Fecha Encuardenado At', - 'fechaEntregaRealAt' => 'Fecha Entrega Real At', - 'fechaEntregaRealWarning' => 'Fecha Entrega Real Warning', - 'fechaExternoAt' => 'Fecha Externo At', - 'fechaFerroSubidoAt' => 'Fecha Ferro Subido At', - 'fechaImpresionAt' => 'Fecha Impresion At', - 'ferro' => 'Ferro', - 'ferroDigital' => 'Ferro Digital', - 'formaPagoId' => 'Forma Pago', - 'forzarTotal' => 'Forzar Total', - 'id' => 'ID', - 'imagenesBnInterior' => 'Imagenes Bn Interior', - 'incRei' => 'Inc Rei', - 'isDeleted' => 'Is Deleted', - 'isbn' => 'Isbn', - 'isdig' => 'Isdig', - 'lomo' => 'Lomo', - 'marcapaginas' => 'Marcapaginas', - 'margen' => 'Margen', - 'margenExtra' => 'Margen Extra', - 'margenManual' => 'Margen Manual', - 'merma' => 'Merma', - 'mermaPortada' => 'Merma Portada', - 'modoComparador' => 'Modo Comparador', - 'moduleTitle' => 'Presupuestos', - 'numeroEdicion' => 'Numero Edicion', - 'paginas' => 'Paginas', - 'paginasColor' => 'Paginas Color', - 'paginasColorCheckImpresionTotal' => 'Paginas Color Check Impresion Total', - 'paginasColorCheckPapelTotal' => 'Paginas Color Check Papel Total', - 'paginasColorClick' => 'Paginas Color Click', - 'paginasColorFormaId' => 'Paginas Color Forma ID', - 'paginasColorGramaje' => 'Paginas Color Gramaje', - 'paginasColorLibro' => 'Paginas Color Libro', - 'paginasColorMano' => 'Paginas Color Mano', - 'paginasColorMaquinaId' => 'Paginas Color Maquina', - 'paginasColorPapelId' => 'Paginas Color Papel', - 'paginasColorPapelImpresionId' => 'Paginas Color Papel Impresion', - 'paginasColorPedido' => 'Paginas Color Pedido', - 'paginasColorPeso' => 'Paginas Color Peso', - 'paginasColorPliegosLibro' => 'Paginas Color Pliegos Libro', - 'paginasColorPliegosPedido' => 'Paginas Color Pliegos Pedido', - 'paginasColorPliegosPrecio' => 'Paginas Color Pliegos Precio', - 'paginasColorPosicion' => 'Paginas Color Posicion', - 'paginasColorPrecio' => 'Paginas Color Precio', - 'paginasColorTarifaImpresionId' => 'Paginas Color Tarifa Impresion', - 'paginasCubierta' => 'Paginas Cubierta', - 'paginasCubiertaCheckImpresionTotal' => 'Paginas Cubierta Check Impresion Total', - 'paginasCubiertaCheckPapelTotal' => 'Paginas Cubierta Check Papel Total', - 'paginasCubiertaClick' => 'Paginas Cubierta Click', - 'paginasCubiertaFormaId' => 'Paginas Cubierta Forma ID', - 'paginasCubiertaGramaje' => 'Paginas Cubierta Gramaje', - 'paginasCubiertaLibro' => 'Paginas Cubierta Libro', - 'paginasCubiertaMano' => 'Paginas Cubierta Mano', - 'paginasCubiertaMaquinaId' => 'Paginas Cubierta Maquina', - 'paginasCubiertaPapelId' => 'Paginas Cubierta Papel', - 'paginasCubiertaPapelImpresionId' => 'Paginas Cubierta Papel Impresion', - 'paginasCubiertaPedido' => 'Paginas Cubierta Pedido', - 'paginasCubiertaPeso' => 'Paginas Cubierta Peso', - 'paginasCubiertaPliegosLibro' => 'Paginas Cubierta Pliegos Libro', - 'paginasCubiertaPliegosPedido' => 'Paginas Cubierta Pliegos Pedido', - 'paginasCubiertaPliegosPrecio' => 'Paginas Cubierta Pliegos Precio', - 'paginasCubiertaPrecio' => 'Paginas Cubierta Precio', - 'paginasCubiertaTarifaImpresionId' => 'Paginas Cubierta Tarifa Impresion', - 'paginasNegro' => 'Paginas Negro', - 'paginasNegroCheckImpresionTotal' => 'Paginas Negro Check Impresion Total', - 'paginasNegroCheckPapelTotal' => 'Paginas Negro Check Papel Total', - 'paginasNegroClick' => 'Paginas Negro Click', - 'paginasNegroFormaId' => 'Paginas Negro Forma ID', - 'paginasNegroGramaje' => 'Paginas Negro Gramaje', - 'paginasNegroHq' => 'Paginas Negro Hq', - 'paginasNegroLibro' => 'Paginas Negro Libro', - 'paginasNegroMano' => 'Paginas Negro Mano', - 'paginasNegroMaquinaId' => 'Paginas Negro Maquina', - 'paginasNegroPapelId' => 'Paginas Negro Papel', - 'paginasNegroPapelImpresionId' => 'Paginas Negro Papel Impresion', - 'paginasNegroPedido' => 'Paginas Negro Pedido', - 'paginasNegroPeso' => 'Paginas Negro Peso', - 'paginasNegroPliegosLibro' => 'Paginas Negro Pliegos Libro', - 'paginasNegroPliegosPedido' => 'Paginas Negro Pliegos Pedido', - 'paginasNegroPliegosPrecio' => 'Paginas Negro Pliegos Precio', - 'paginasNegroPrecio' => 'Paginas Negro Precio', - 'paginasNegroTarifaImpresionId' => 'Paginas Negro Tarifa Impresion', - 'paginasPortada' => 'Paginas Portada', - 'paginasPortadaCheckImpresionTotal' => 'Paginas Portada Check Impresion Total', - 'paginasPortadaCheckPapelTotal' => 'Paginas Portada Check Papel Total', - 'paginasPortadaClick' => 'Paginas Portada Click', - 'paginasPortadaFormaId' => 'Paginas Portada Forma ID', - 'paginasPortadaGramaje' => 'Paginas Portada Gramaje', - 'paginasPortadaLibro' => 'Paginas Portada Libro', - 'paginasPortadaMano' => 'Paginas Portada Mano', - 'paginasPortadaMaquinaId' => 'Paginas Portada Maquina', - 'paginasPortadaPapelId' => 'Paginas Portada Papel', - 'paginasPortadaPapelImpresionId' => 'Paginas Portada Papel Impresion', - 'paginasPortadaPedido' => 'Paginas Portada Pedido', - 'paginasPortadaPeso' => 'Paginas Portada Peso', - 'paginasPortadaPliegosLibro' => 'Paginas Portada Pliegos Libro', - 'paginasPortadaPliegosPedido' => 'Paginas Portada Pliegos Pedido', - 'paginasPortadaPliegosPrecio' => 'Paginas Portada Pliegos Precio', - 'paginasPortadaPrecio' => 'Paginas Portada Precio', - 'paginasPortadaTarifaImpresionId' => 'Paginas Portada Tarifa Impresion', - 'paisId' => 'Pais', - 'papelFormatoAlto' => 'Papel Formato Alto', - 'papelFormatoAncho' => 'Papel Formato Ancho', - 'papelFormatoId' => 'Papel Formato', - 'papelFormatoPersonalizado' => 'Papel Formato Personalizado', - 'pedidoEsperaFecha' => 'Pedido Espera Fecha', - 'pedidoEsperaUserId' => 'Pedido Espera User', - 'pedidoLibroConjuntoId' => 'Pedido Libro Conjunto ID', - 'presupuesto' => 'Presupuesto', - 'presupuestoList' => 'Presupuesto List', - 'presupuestos' => 'Presupuestos', - 'recogerEnTaller' => 'Recoger EN Taller', - 'referenciaCliente' => 'Referencia Cliente', - 'responsable' => 'Responsable', - 'serieId' => 'Serie ID', - 'solapas' => 'Solapas', - 'solapasAncho' => 'Solapas Ancho', - 'tarifaClienteId' => 'Tarifa Cliente ID', - 'tipoImpresionId' => 'Tipo Impresion', - 'tipologiaId' => 'Tipologia', - 'tirada' => 'Tirada', - 'tiradaAlternativaJsonData' => 'Tirada Alternativa Json Data', - 'titulo' => 'Titulo', - 'total' => 'Total', - 'totalAcabado' => 'Total Acabado', - 'totalCalculado' => 'Total Calculado', - 'totalClick' => 'Total Click', - 'totalConfirmado' => 'Total Confirmado', - 'totalConfirmadoUpdateAt' => 'Total Confirmado Update At', - 'totalConfirmadoUserId' => 'Total Confirmado User', - 'totalDescuento' => 'Total Descuento', - 'totalEnvios' => 'Total Envios', - 'totalManipulado' => 'Total Manipulado', - 'totalMargen' => 'Total Margen', - 'totalMargenExtra' => 'Total Margen Extra', - 'totalPedido' => 'Total Pedido', - 'totalPeso' => 'Total Peso', - 'totalPreimpresion' => 'Total Preimpresion', - 'totalPreimpresionMargen' => 'Total Preimpresion Margen', - 'totalPresupuesto' => 'Total Presupuesto', - 'ubicacionId' => 'Ubicacion', - 'updatedAt' => 'Updated At', - 'userCreatedId' => 'User Created', - 'userUpdateId' => 'User Update', - 'version' => 'Version', - 'wsExternoJsonData' => 'Ws Externo Json Data', - 'validation' => [ - 'aprobado_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', - - ], - - 'aprobado_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - - ], - - 'base_imponible' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - - ], - - 'catalogo_id' => [ - 'integer' => 'The {field} field must contain an integer.', - - ], - - 'causa_cancelacion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - - ], + 'moduleTitleCosidoTB' => 'Presupuesto Libro Cosido Tapa Blanda', + + 'presupuestoCosidotapablandaList' => 'Lista presupuestos Libros Cosido Tapa Blanda', + 'presupuesto' => 'Presupuesto', + + 'datosPresupuesto' => 'Datos generales del presupuesto', + 'datosLibro' => 'Datos del libro', + + 'id' => 'Número Presupuesto', + 'created_at' => 'Fecha', + 'clienteId' => 'Cliente', + 'comercial' => 'Comercial', + 'titulo' => 'Título', + 'paisId' => 'País', + 'incRei' => 'Incidencia \ Reimpresión', + 'paginas' => 'Paginas', + 'tirada' => 'Tirada', + 'totalPedido' => 'Total Presupuesto', + 'presupuestoEstado' => 'Estado', + 'presupuestoEstadoBorrador' => 'Borrador', + 'presupuestoEstadoAceptado' => 'Aceptado', + 'incidencia' => 'Incidencia', + 'reimpresion' => 'Reimpresion', + 'sinCargo' => 'Sin cargo', + 'autor' => 'Autor', + 'coleccion' => 'Colección', + 'numeroEdicion' => 'Número de edición', + 'isbn' => 'ISBN', + 'referenciaCliente' => 'Referencia del cliente', + 'papelFormatoId' => "Tamaño", + 'papelFormatoPersonalizado' => 'Tamaño personalizado', + 'papelFormatoAncho' => 'Ancho', + 'papelFormatoAlto' => 'Alto', + 'cosido' => 'Cosido', + 'ferro' => 'Ferro', + 'ferroDigital' => 'Ferro Digital', + 'prototipo' => 'Prototipo', + 'imagenesBnInterior' => 'Imágenes B/N interior', + 'recogerEnTaller' => 'Recoger en taller', + 'marcapaginas' => 'Marcapáginas', + + + /* '4x0' => '4x0', + '4x4' => '4x4', + 'aprobadoAt' => 'Aprobado At', + 'aprobadoJsonData' => 'Aprobado Json Data', + 'aprobadoUserId' => 'Aprobado User', + 'autor' => 'Autor', + 'baseImponible' => 'Base Imponible', + 'catalogoId' => 'Catalogo ID', + 'causaCancelacion' => 'Causa Cancelacion', + 'coleccion' => 'Coleccion', + 'comentarios' => 'Comentarios', + 'comentariosPdf' => 'Comentarios Pdf', + 'comentariosSafekat' => 'Comentarios Safekat', + 'comentariosTarifa' => 'Comentarios Tarifa', + 'comparadorJsonData' => 'Comparador Json Data', + 'cosido' => 'Cosido', + 'createdAt' => 'Created At', + 'cubiertas' => 'Cubiertas', + 'cubiertasAncho' => 'Cubiertas Ancho', + 'deletedAt' => 'Deleted At', + 'descuento' => 'Descuento', + 'enEspera' => 'EN Espera', + 'enProduccion' => 'EN Produccion', + 'enviosRecogeCliente' => 'Envios Recoge Cliente', + 'estadoId' => 'Estado', + 'facturaId' => 'Factura ID', + 'fechaEncuardenadoAt' => 'Fecha Encuardenado At', + 'fechaEntregaRealAt' => 'Fecha Entrega Real At', + 'fechaEntregaRealWarning' => 'Fecha Entrega Real Warning', + 'fechaExternoAt' => 'Fecha Externo At', + 'fechaFerroSubidoAt' => 'Fecha Ferro Subido At', + 'fechaImpresionAt' => 'Fecha Impresion At', + 'ferro' => 'Ferro', + 'ferroDigital' => 'Ferro Digital', + 'formaPagoId' => 'Forma Pago', + 'forzarTotal' => 'Forzar Total', + 'imagenesBnInterior' => 'Imagenes Bn Interior', + 'isDeleted' => 'Is Deleted', + 'isbn' => 'Isbn', + 'isdig' => 'Isdig', + 'lomo' => 'Lomo', + 'marcapaginas' => 'Marcapaginas', + 'margen' => 'Margen', + 'margenExtra' => 'Margen Extra', + 'margenManual' => 'Margen Manual', + 'merma' => 'Merma', + 'mermaPortada' => 'Merma Portada', + 'modoComparador' => 'Modo Comparador', + 'moduleTitle' => 'Presupuestos', + 'numeroEdicion' => 'Numero Edicion', + 'paginasColor' => 'Paginas Color', + 'paginasColorCheckImpresionTotal' => 'Paginas Color Check Impresion Total', + 'paginasColorCheckPapelTotal' => 'Paginas Color Check Papel Total', + 'paginasColorClick' => 'Paginas Color Click', + 'paginasColorFormaId' => 'Paginas Color Forma ID', + 'paginasColorGramaje' => 'Paginas Color Gramaje', + 'paginasColorLibro' => 'Paginas Color Libro', + 'paginasColorMano' => 'Paginas Color Mano', + 'paginasColorMaquinaId' => 'Paginas Color Maquina', + 'paginasColorPapelId' => 'Paginas Color Papel', + 'paginasColorPapelImpresionId' => 'Paginas Color Papel Impresion', + 'paginasColorPedido' => 'Paginas Color Pedido', + 'paginasColorPeso' => 'Paginas Color Peso', + 'paginasColorPliegosLibro' => 'Paginas Color Pliegos Libro', + 'paginasColorPliegosPedido' => 'Paginas Color Pliegos Pedido', + 'paginasColorPliegosPrecio' => 'Paginas Color Pliegos Precio', + 'paginasColorPosicion' => 'Paginas Color Posicion', + 'paginasColorPrecio' => 'Paginas Color Precio', + 'paginasColorTarifaImpresionId' => 'Paginas Color Tarifa Impresion', + 'paginasCubierta' => 'Paginas Cubierta', + 'paginasCubiertaCheckImpresionTotal' => 'Paginas Cubierta Check Impresion Total', + 'paginasCubiertaCheckPapelTotal' => 'Paginas Cubierta Check Papel Total', + 'paginasCubiertaClick' => 'Paginas Cubierta Click', + 'paginasCubiertaFormaId' => 'Paginas Cubierta Forma ID', + 'paginasCubiertaGramaje' => 'Paginas Cubierta Gramaje', + 'paginasCubiertaLibro' => 'Paginas Cubierta Libro', + 'paginasCubiertaMano' => 'Paginas Cubierta Mano', + 'paginasCubiertaMaquinaId' => 'Paginas Cubierta Maquina', + 'paginasCubiertaPapelId' => 'Paginas Cubierta Papel', + 'paginasCubiertaPapelImpresionId' => 'Paginas Cubierta Papel Impresion', + 'paginasCubiertaPedido' => 'Paginas Cubierta Pedido', + 'paginasCubiertaPeso' => 'Paginas Cubierta Peso', + 'paginasCubiertaPliegosLibro' => 'Paginas Cubierta Pliegos Libro', + 'paginasCubiertaPliegosPedido' => 'Paginas Cubierta Pliegos Pedido', + 'paginasCubiertaPliegosPrecio' => 'Paginas Cubierta Pliegos Precio', + 'paginasCubiertaPrecio' => 'Paginas Cubierta Precio', + 'paginasCubiertaTarifaImpresionId' => 'Paginas Cubierta Tarifa Impresion', + 'paginasNegro' => 'Paginas Negro', + 'paginasNegroCheckImpresionTotal' => 'Paginas Negro Check Impresion Total', + 'paginasNegroCheckPapelTotal' => 'Paginas Negro Check Papel Total', + 'paginasNegroClick' => 'Paginas Negro Click', + 'paginasNegroFormaId' => 'Paginas Negro Forma ID', + 'paginasNegroGramaje' => 'Paginas Negro Gramaje', + 'paginasNegroHq' => 'Paginas Negro Hq', + 'paginasNegroLibro' => 'Paginas Negro Libro', + 'paginasNegroMano' => 'Paginas Negro Mano', + 'paginasNegroMaquinaId' => 'Paginas Negro Maquina', + 'paginasNegroPapelId' => 'Paginas Negro Papel', + 'paginasNegroPapelImpresionId' => 'Paginas Negro Papel Impresion', + 'paginasNegroPedido' => 'Paginas Negro Pedido', + 'paginasNegroPeso' => 'Paginas Negro Peso', + 'paginasNegroPliegosLibro' => 'Paginas Negro Pliegos Libro', + 'paginasNegroPliegosPedido' => 'Paginas Negro Pliegos Pedido', + 'paginasNegroPliegosPrecio' => 'Paginas Negro Pliegos Precio', + 'paginasNegroPrecio' => 'Paginas Negro Precio', + 'paginasNegroTarifaImpresionId' => 'Paginas Negro Tarifa Impresion', + 'paginasPortada' => 'Paginas Portada', + 'paginasPortadaCheckImpresionTotal' => 'Paginas Portada Check Impresion Total', + 'paginasPortadaCheckPapelTotal' => 'Paginas Portada Check Papel Total', + 'paginasPortadaClick' => 'Paginas Portada Click', + 'paginasPortadaFormaId' => 'Paginas Portada Forma ID', + 'paginasPortadaGramaje' => 'Paginas Portada Gramaje', + 'paginasPortadaLibro' => 'Paginas Portada Libro', + 'paginasPortadaMano' => 'Paginas Portada Mano', + 'paginasPortadaMaquinaId' => 'Paginas Portada Maquina', + 'paginasPortadaPapelId' => 'Paginas Portada Papel', + 'paginasPortadaPapelImpresionId' => 'Paginas Portada Papel Impresion', + 'paginasPortadaPedido' => 'Paginas Portada Pedido', + 'paginasPortadaPeso' => 'Paginas Portada Peso', + 'paginasPortadaPliegosLibro' => 'Paginas Portada Pliegos Libro', + 'paginasPortadaPliegosPedido' => 'Paginas Portada Pliegos Pedido', + 'paginasPortadaPliegosPrecio' => 'Paginas Portada Pliegos Precio', + 'paginasPortadaPrecio' => 'Paginas Portada Precio', + 'paginasPortadaTarifaImpresionId' => 'Paginas Portada Tarifa Impresion', + 'papelFormatoAlto' => 'Papel Formato Alto', + 'papelFormatoAncho' => 'Papel Formato Ancho', + 'papelFormatoId' => 'Papel Formato', + 'papelFormatoPersonalizado' => 'Papel Formato Personalizado', + 'pedidoEsperaFecha' => 'Pedido Espera Fecha', + 'pedidoEsperaUserId' => 'Pedido Espera User', + 'pedidoLibroConjuntoId' => 'Pedido Libro Conjunto ID', + 'presupuesto' => 'Presupuesto', + 'presupuestoList' => 'Presupuesto List', + 'presupuestos' => 'Presupuestos', + 'recogerEnTaller' => 'Recoger EN Taller', + 'referenciaCliente' => 'Referencia Cliente', + 'responsable' => 'Responsable', + 'serieId' => 'Serie ID', + 'solapas' => 'Solapas', + 'solapasAncho' => 'Solapas Ancho', + 'tarifaClienteId' => 'Tarifa Cliente ID', + 'tipoImpresionId' => 'Tipo Impresion', + 'tipologiaId' => 'Tipologia', + 'tiradaAlternativaJsonData' => 'Tirada Alternativa Json Data', + 'total' => 'Total', + 'totalAcabado' => 'Total Acabado', + 'totalCalculado' => 'Total Calculado', + 'totalClick' => 'Total Click', + 'totalConfirmado' => 'Total Confirmado', + 'totalConfirmadoUpdateAt' => 'Total Confirmado Update At', + 'totalConfirmadoUserId' => 'Total Confirmado User', + 'totalDescuento' => 'Total Descuento', + 'totalEnvios' => 'Total Envios', + 'totalManipulado' => 'Total Manipulado', + 'totalMargen' => 'Total Margen', + 'totalMargenExtra' => 'Total Margen Extra', + 'totalPeso' => 'Total Peso', + 'totalPreimpresion' => 'Total Preimpresion', + 'totalPreimpresionMargen' => 'Total Preimpresion Margen', + 'totalPresupuesto' => 'Total Presupuesto', + 'ubicacionId' => 'Ubicacion', + 'updatedAt' => 'Updated At', + 'userCreatedId' => 'User Created', + 'userUpdateId' => 'User Update', + 'version' => 'Version', + 'wsExternoJsonData' => 'Ws Externo Json Data', + 'validation' => [ + 'aprobado_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', + + ], + + 'aprobado_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + + ], + + 'base_imponible' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + + ], + + 'catalogo_id' => [ + 'integer' => 'The {field} field must contain an integer.', + + ], + + 'causa_cancelacion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + + ], - 'coleccion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'coleccion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'comparador_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'comparador_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'factura_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'factura_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'fecha_encuardenado_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_encuardenado_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_entrega_real_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_entrega_real_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_externo_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_externo_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_ferro_subido_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_ferro_subido_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'fecha_impresion_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'fecha_impresion_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'inc_rei' => [ - 'integer' => 'The {field} field must contain an integer.', + 'inc_rei' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'isbn' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'isbn' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'lomo' => [ - 'integer' => 'The {field} field must contain an integer.', + 'lomo' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'margen_manual' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'margen_manual' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'numero_edicion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'numero_edicion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'paginas_color' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_color' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_color_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_color_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_color_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_color_posicion' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'paginas_color_posicion' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'paginas_color_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_color_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_cubierta_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_cubierta_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_cubierta_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_cubierta_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_negro' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_negro_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_negro_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_negro_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_negro_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_negro_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_forma_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'paginas_portada_forma_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'paginas_portada_gramaje' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_gramaje' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_mano' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_mano' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_libro' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_libro' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_pliegos_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_pliegos_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'paginas_portada_precio' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'paginas_portada_precio' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'papel_formato_alto' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'papel_formato_alto' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'papel_formato_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'papel_formato_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'pedido_espera_fecha' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'pedido_espera_fecha' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'pedido_libro_conjunto_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'pedido_libro_conjunto_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'responsable' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'responsable' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'serie_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'serie_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'tarifa_cliente_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'tarifa_cliente_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'tirada_alternativa_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'tirada_alternativa_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'total' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_acabado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_acabado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_calculado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_calculado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_click' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_click' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_confirmado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_confirmado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_confirmado_update_at' => [ - 'valid_date' => 'The {field} field must contain a valid date.', + 'total_confirmado_update_at' => [ + 'valid_date' => 'The {field} field must contain a valid date.', - ], + ], - 'total_descuento' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_descuento' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_envios' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_envios' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_manipulado' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_manipulado' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_margen_extra' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_margen_extra' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_peso' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_peso' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_preimpresion' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_preimpresion' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_preimpresion_margen' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_preimpresion_margen' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'total_presupuesto' => [ - 'decimal' => 'The {field} field must contain a decimal number.', + 'total_presupuesto' => [ + 'decimal' => 'The {field} field must contain a decimal number.', - ], + ], - 'user_update_id' => [ - 'integer' => 'The {field} field must contain an integer.', + 'user_update_id' => [ + 'integer' => 'The {field} field must contain an integer.', - ], + ], - 'ws_externo_json_data' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'ws_externo_json_data' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - ], + ], - 'autor' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'autor' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_pdf' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_pdf' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_safekat' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_safekat' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'comentarios_tarifa' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'comentarios_tarifa' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'cubiertas_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'cubiertas_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'descuento' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'descuento' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'forzar_total' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'forzar_total' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'is_deleted' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'is_deleted' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'margen_extra' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'margen_extra' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'merma' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'merma' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'merma_cubierta' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'merma_portada' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'paginas' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_cubierta' => [ - 'in_list' => 'The {field} field must be one of: {param}.', - 'required' => 'The {field} field is required.', + 'paginas_cubierta' => [ + 'in_list' => 'The {field} field must be one of: {param}.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_portada' => [ - 'in_list' => 'The {field} field must be one of: {param}.', - 'required' => 'The {field} field is required.', + 'paginas_portada' => [ + 'in_list' => 'The {field} field must be one of: {param}.', + 'required' => 'The {field} field is required.', - ], + ], - 'paginas_portada_pedido' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'paginas_portada_pedido' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'referencia_cliente' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'referencia_cliente' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'solapas_ancho' => [ - 'decimal' => 'The {field} field must contain a decimal number.', - 'required' => 'The {field} field is required.', + 'solapas_ancho' => [ + 'decimal' => 'The {field} field must contain a decimal number.', + 'required' => 'The {field} field is required.', - ], + ], - 'tirada' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'tirada' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], + ], - 'titulo' => [ - 'max_length' => 'The {field} field cannot exceed {param} characters in length.', - 'required' => 'The {field} field is required.', + 'titulo' => [ + 'max_length' => 'The {field} field cannot exceed {param} characters in length.', + 'required' => 'The {field} field is required.', - ], + ], - 'user_created_id' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', + 'user_created_id' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', - ], - - 'version' => [ - 'integer' => 'The {field} field must contain an integer.', - 'required' => 'The {field} field is required.', - - ], + ], + 'version' => [ + 'integer' => 'The {field} field must contain an integer.', + 'required' => 'The {field} field is required.', ], -]; \ No newline at end of file + ], */ + + +]; diff --git a/ci4/app/Models/Configuracion/PapelFormatoModel.php b/ci4/app/Models/Configuracion/PapelFormatoModel.php new file mode 100644 index 00000000..7c4d2464 --- /dev/null +++ b/ci4/app/Models/Configuracion/PapelFormatoModel.php @@ -0,0 +1,96 @@ + "t1.id", + 2 => "t1.ancho", + 3 => "t1.alto", + 4 => "t1.created_at", + 5 => "t1.updated_at", + ]; + + protected $allowedFields = ["ancho", "alto"]; + protected $returnType = "App\Entities\Configuracion\PapelFormatoEntity"; + + protected $useTimestamps = true; + protected $useSoftDeletes = false; + + protected $createdField = "created_at"; + + protected $updatedField = "updated_at"; + + public static $labelField = "ancho"; + + protected $validationRules = [ + "alto" => [ + "label" => "LgPapelFormatoes.alto", + "rules" => "required|decimal", + ], + "ancho" => [ + "label" => "LgPapelFormatoes.ancho", + "rules" => "required|decimal", + ], + ]; + + protected $validationMessages = [ + "alto" => [ + "decimal" => "LgPapelFormatoes.validation.alto.decimal", + "required" => "LgPapelFormatoes.validation.alto.required", + ], + "ancho" => [ + "decimal" => "LgPapelFormatoes.validation.ancho.decimal", + "required" => "LgPapelFormatoes.validation.ancho.required", + ], + ]; + + /** + * Get resource data. + * + * @param string $search + * + * @return \CodeIgniter\Database\BaseBuilder + */ + public function getResource(string $search = "") + { + $builder = $this->db + ->table($this->table . " t1") + ->select( + "t1.id AS id, t1.ancho AS ancho, t1.alto AS alto, t1.created_at AS created_at, t1.updated_at AS updated_at" + ); + + return empty($search) + ? $builder + : $builder + ->groupStart() + ->like("t1.id", $search) + ->orLike("t1.ancho", $search) + ->orLike("t1.alto", $search) + ->orLike("t1.created_at", $search) + ->orLike("t1.updated_at", $search) + ->orLike("t1.id", $search) + ->orLike("t1.ancho", $search) + ->orLike("t1.alto", $search) + ->orLike("t1.created_at", $search) + ->orLike("t1.updated_at", $search) + ->groupEnd(); + } + + public function getElementsForMenu(){ + return $this->db + ->table($this->table . " t1") + ->select( + "t1.id AS id, CONCAT(t1.ancho, ' x ', t1.alto) AS tamanio" + )->get()->getResultObject(); + } +} diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/_papelFormatoFormItems.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/_papelFormatoFormItems.php new file mode 100644 index 00000000..e4266990 --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/_papelFormatoFormItems.php @@ -0,0 +1,19 @@ +
+
+
+ + +
+ +
+ + +
+ +
+ +
\ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoForm.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoForm.php new file mode 100644 index 00000000..e67af5db --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoForm.php @@ -0,0 +1,26 @@ +include("Themes/_commonPartialsBs/select2bs5") ?> +include("Themes/_commonPartialsBs/sweetalert") ?> +extend("Themes/" . config("Basics")->theme["name"] . "/AdminLayout/defaultLayout") ?> +section("content") ?> +
+
+
+
+

+
+
+ +
+ + getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> + +
+ +
+
+
+
+endSection() ?> diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoList.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoList.php new file mode 100644 index 00000000..30b4a86a --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papelformato/viewPapelFormatoList.php @@ -0,0 +1,187 @@ +include('Themes/_commonPartialsBs/datatables') ?> +include('Themes/_commonPartialsBs/sweetalert') ?> +extend('Themes/'.config('Basics')->theme['name'].'/AdminLayout/defaultLayout') ?> +section('content'); ?> +
+
+ +
+
+

+
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+
+
+ +endSection() ?> + + +section('additionalInlineJs') ?> + + const lastColNr = $('#tableOfPapelesformatos').find("tr:first th").length - 1; + const actionBtns = function(data) { + return ` +
+ + +
+ `; + }; + theTable = $('#tableOfPapelesformatos').DataTable({ + processing: true, + serverSide: true, + autoWidth: true, + responsive: true, + scrollX: true, + lengthMenu: [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ], + pageLength: 10, + lengthChange: true, + "dom": 'lfrtipB', // 'lfBrtip', // you can try different layout combinations by uncommenting one or the other + // "dom": '<"top"lf><"clear">rt<"bottom"ipB><"clear">', // remember to comment this line if you uncomment the above + "buttons": [ + 'copy', 'csv', 'excel', 'print', { + extend: 'pdfHtml5', + orientation: 'landscape', + pageSize: 'A4' + } + ], + stateSave: true, + order: [[1, 'asc']], + language: { + url: "/assets/dt/languages[$currentLocale] ?? config('Basics')->i18n ?>.json" + }, + ajax : $.fn.dataTable.pipeline( { + url: '', + method: 'POST', + headers: {'X-Requested-With': 'XMLHttpRequest'}, + async: true, + }), + columnDefs: [ + { + orderable: false, + searchable: false, + targets: [0,lastColNr] + } + ], + columns : [ + { 'data': actionBtns }, + { 'data': 'id' }, + { 'data': 'ancho' }, + { 'data': 'alto' }, + { 'data': 'created_at' }, + { 'data': 'updated_at' }, + { 'data': actionBtns } + ] + }); + + + theTable.on( 'draw.dt', function () { + + const dateCols = [4, 5]; + const shortDateFormat = ''; + const dateTimeFormat = ''; + + for (let coln of dateCols) { + theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) { + const datestr = cell.innerHTML; + const dateStrLen = datestr.toString().trim().length; + if (dateStrLen > 0) { + let dateTimeParts= datestr.split(/[- :]/); // regular expression split that creates array with: year, month, day, hour, minutes, seconds values + dateTimeParts[1]--; // monthIndex begins with 0 for January and ends with 11 for December so we need to decrement by one + const d = new Date(...dateTimeParts); // new Date(datestr); + const md = moment(d); + const usingThisFormat = dateStrLen > 11 ? dateTimeFormat : shortDateFormat; + const formattedDateStr = md.format(usingThisFormat); + cell.innerHTML = formattedDateStr; + } + }); + } + }); + +$(document).on('click', '.btn-edit', function(e) { + window.location.href = `/${$(this).attr('data-id')}/edit`; + }); + +$(document).on('click', '.btn-delete', function(e) { + Swal.fire({ + title: '', + text: '', + icon: 'warning', + showCancelButton: true, + confirmButtonColor: '#3085d6', + confirmButtonText: '', + cancelButtonText: '', + cancelButtonColor: '#d33' + }) + .then((result) => { + const dataId = $(this).data('id'); + const row = $(this).closest('tr'); + if (result.value) { + $.ajax({ + url: `/${dataId}`, + method: 'DELETE', + }).done((data, textStatus, jqXHR) => { + Toast.fire({ + icon: 'success', + title: data.msg ?? jqXHR.statusText, + }); + + theTable.clearPipeline(); + theTable.row($(row)).invalidate().draw(); + }).fail((jqXHR, textStatus, errorThrown) => { + Toast.fire({ + icon: 'error', + title: jqXHR.responseJSON.messages.error, + }); + }) + } + }); + }); + + + + +endSection() ?> + + +section('css') ?> + +endSection() ?> + + +section('additionalExternalJs') ?> + + + + + + + + + + +endSection() ?> + diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_cosidotapablandaFormItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_cosidotapablandaFormItems.php index b2c64879..bcb20c95 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_cosidotapablandaFormItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_cosidotapablandaFormItems.php @@ -98,20 +98,7 @@ -
- - -
+
-
-
+ - -
-
+ + -
-
+ + - -
-
+ -
-
+ - -
-
+ -
-
+ - -
-
+ -
- - -
- -
-
- - -
-
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
+
@@ -310,15 +181,7 @@
-
-
- - -
-
+
@@ -337,29 +200,9 @@
-
- - -
+ -
- - -
- -
-
- - -
-
+
endSection() ?> + + + section("additionalInlineJs") ?> - - $('#papelFormatoId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'id', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - $('#clienteId').select2({ - theme: 'bootstrap-5', allowClear: false, ajax: { url: '', @@ -77,677 +51,46 @@ }, delay: 60, processResults: function (response) { - yeniden(response.); - return { results: response.menu }; }, - cache: true } }); - $('#paginassobrecubiertaPapelImpresionId').select2({ - theme: 'bootstrap-5', + $('#incRei').select2({ allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } }); - $('#tipoImpresionId').select2({ - theme: 'bootstrap-5', + $('#paisId').select2({ allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasColorTarifaImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'precio', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasColorPapelId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasNegroTarifaImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'precio', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasNegroPapelId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginassobrecubiertaTarifaImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'precio', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginassobrecubiertaPapelId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginascubiertaPapelId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#totalConfirmadoUserId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id_user', - text: 'first_name', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#tipologiaId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#aprobadoUserId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id_user', - text: 'first_name', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#pedidoEsperaUserId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id_user', - text: 'first_name', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasNegroMaquinaId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#estadoId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'estado', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasColorMaquinaId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasNegroPapelImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginassobrecubiertaMaquinaId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginascubiertaMaquinaId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginascubiertaTarifaImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'id', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginasColorPapelImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } - }); - - $('#paginascubiertaPapelImpresionId').select2({ - theme: 'bootstrap-5', - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', - - data: function (params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function (response) { - - yeniden(response.); - - return { - results: response.menu - }; - }, - - cache: true - } }); endSection() ?> + + + + + +section("additionalInlineJs") ?> + $('#papelFormatoPersonalizado').on("click",function(){ + var checkbox = document.getElementById('papelFormatoPersonalizado'); + if(checkbox.checked == true){ + document.getElementById("label_papelFormatoAncho").style.display = "block"; + document.getElementById("papelFormatoAncho").style.display = "block"; + document.getElementById("label_papelFormatoAlto").style.display = "block"; + document.getElementById("papelFormatoAlto").style.display = "block"; + document.getElementById("papelFormatoId").disabled = true; + } + else{ + document.getElementById("label_papelFormatoAncho").style.display = "none"; + document.getElementById("papelFormatoAncho").style.display = "none"; + document.getElementById("label_papelFormatoAlto").style.display = "none"; + document.getElementById("papelFormatoAlto").style.display = "none"; + document.getElementById("papelFormatoId").disabled = false; + } + }); +endSection() ?> diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php index 359939e1..994f1fdd 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php @@ -9,7 +9,7 @@
-

+

'btn btn-primary float-end']); ?>
@@ -28,7 +28,7 @@ - + @@ -51,12 +51,13 @@ const lastColNr = $('#tableOfPresupuestos').find("tr:first th").length - 1; const actionBtns = function(data) { - return ` + return ` +
- - + +
- `; + `; }; theTable = $('#tableOfPresupuestos').DataTable({ processing: true, @@ -69,7 +70,7 @@ lengthChange: true, "dom": 'lfBrtip', "buttons": [ - 'copy', 'csv', 'excel', 'print', { + 'colvis', 'copy', 'csv', 'excel', 'print', { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4' @@ -113,8 +114,7 @@ theTable.on( 'draw.dt', function () { const dateCols = [1]; - const shortDateFormat = ''; - const dateTimeFormat = ''; + const priceCols = [9]; for (let coln of dateCols) { theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) { @@ -124,56 +124,49 @@ theTable.on( 'draw.dt', function () { let dateTimeParts= datestr.split(/[- :]/); // regular expression split that creates array with: year, month, day, hour, minutes, seconds values dateTimeParts[1]--; // monthIndex begins with 0 for January and ends with 11 for December so we need to decrement by one const d = new Date(...dateTimeParts); // new Date(datestr); - const md = moment(d); - const usingThisFormat = dateStrLen > 11 ? dateTimeFormat : shortDateFormat; - const formattedDateStr = md.format(usingThisFormat); - cell.innerHTML = formattedDateStr; + cell.innerHTML = d.toLocaleDateString(); } }); } + + for (let coln of priceCols) { + theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) { + cell.innerHTML = parseFloat(cell.innerHTML).toFixed(2); + + }); + } }); $(document).on('click', '.btn-edit', function(e) { - window.location.href = `/${$(this).attr('data-id')}/edit`; - }); - -$(document).on('click', '.btn-delete', function(e) { - Swal.fire({ - title: '', - text: '', - icon: 'warning', - showCancelButton: true, - confirmButtonColor: '#3085d6', - confirmButtonText: '', - cancelButtonText: '', - cancelButtonColor: '#d33' - }) - .then((result) => { - const dataId = $(this).data('id'); - const row = $(this).closest('tr'); - if (result.value) { - $.ajax({ - url: `/${dataId}`, - method: 'DELETE', - }).done((data, textStatus, jqXHR) => { - Toast.fire({ - icon: 'success', - title: data.msg ?? jqXHR.statusText, - }); - - theTable.clearPipeline(); - theTable.row($(row)).invalidate().draw(); - }).fail((jqXHR, textStatus, errorThrown) => { - Toast.fire({ - icon: 'error', - title: jqXHR.responseJSON.messages.error, - }); - }) - } - }); + window.location.href = `/presupuestos/cosidotapablanda/edit/${$(this).attr('data-id')}`; }); - + + +$(document).on('click', '.btn-delete', function(e) { + $(".btn-remove").attr('data-id', $(this).attr('data-id')); +}); + + +$(document).on('click', '.btn-remove', function(e) { + const dataId = $(this).attr('data-id'); + const row = $(this).closest('tr'); + if ($.isNumeric(dataId)) { + $.ajax({ + url: `/presupuestos/cosidotapablanda/delete/${dataId}`, + method: 'GET', + }).done((data, textStatus, jqXHR) => { + $('#confirm2delete').modal('toggle'); + theTable.clearPipeline(); + theTable.row($(row)).invalidate().draw(); + popSuccessAlert(data.msg ?? jqXHR.statusText); + }).fail((jqXHR, textStatus, errorThrown) => { + popErrorAlert(jqXHR.responseJSON.messages.error) + }) + } +}); + + @@ -190,6 +183,8 @@ $(document).on('click', '.btn-delete', function(e) { + +