mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Primeros cambios en cosido tapa blanda
This commit is contained in:
@ -456,6 +456,20 @@ $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->get('', 'Cosidotapablanda::index', ['as' => 'cosidotapablandaList']);
|
||||
$routes->get('add', 'Cosidotapablanda::add', ['as' => 'newCosidotapablanda']);
|
||||
$routes->post('add', 'Cosidotapablanda::add', ['as' => 'createCosidotapablanda']);
|
||||
$routes->post('create', 'Cosidotapablanda::create', ['as' => 'ajaxCreateCosidotapablanda']);
|
||||
$routes->put('(:num)/update', 'Cosidotapablanda::update/$1', ['as' => 'ajaxUpdateCosidotapablanda']);
|
||||
$routes->post('(:num)/edit', 'Cosidotapablanda::edit/$1', ['as' => 'updateCosidotapablanda']);
|
||||
$routes->post('datatable', 'Cosidotapablanda::datatable', ['as' => 'dataTableOfCosidotapablanda']);
|
||||
$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']);
|
||||
|
||||
/*
|
||||
* --------------------------------------------------------------------
|
||||
* Additional Routing
|
||||
|
||||
@ -1,19 +1,882 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Presupuestos;
|
||||
use App\Controllers\BaseController;
|
||||
|
||||
use App\Controllers\GoBaseResourceController;
|
||||
|
||||
use App\Models\Collection;
|
||||
|
||||
use App\Entities\Presupuestos\PresupuestoEntity;
|
||||
|
||||
use App\Models\Presupuestos\PresupuestoModel;
|
||||
|
||||
class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
||||
{
|
||||
|
||||
protected $modelName = "PresupuestoModel";
|
||||
protected $format = 'json';
|
||||
|
||||
protected static $singularObjectName = 'Cosido Tapa Blanda';
|
||||
protected static $singularObjectNameCc = 'cosidoTapaBlanda';
|
||||
protected static $pluralObjectName = 'Cosidos Tapa Blanda';
|
||||
protected static $pluralObjectNameCc = 'cosidosTapaBlanda';
|
||||
|
||||
protected static $controllerSlug = 'cosidotapablanda';
|
||||
|
||||
protected static $viewPath = 'themes/backend/vuexy/form/presupuestos/cosidotapablanda/';
|
||||
|
||||
protected $indexRoute = 'cosidotapablandaList';
|
||||
|
||||
|
||||
class Cosidotapablanda extends BaseController
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
|
||||
|
||||
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
|
||||
{
|
||||
|
||||
$this->viewData['pageTitle'] = lang('Presupuestos.moduleTitle');
|
||||
$this->viewData['usingSweetAlert'] = true;
|
||||
parent::initController($request, $response, $logger);
|
||||
$this->model = new PresupuestoModel();
|
||||
}
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Presupuesto >> Libros >> Cosido tapa blanda [en desarrollo].';
|
||||
|
||||
$viewData = [
|
||||
'currentModule' => static::$controllerSlug,
|
||||
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Presupuestos.presupuesto')]),
|
||||
'presupuestoEntity' => new PresupuestoEntity(),
|
||||
'usingServerSideDataTable' => true,
|
||||
|
||||
];
|
||||
|
||||
// Se indica que este controlador trabaja con soft_delete
|
||||
$this->soft_delete = true;
|
||||
// Se indica el flag para los ficheros borrados
|
||||
$this->delete_flag = 1;
|
||||
|
||||
$this->viewData = ['usingServerSideDataTable' => true]; // JJO
|
||||
|
||||
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
||||
|
||||
return view(static::$viewPath . 'viewCosidotapablandaList', $viewData);
|
||||
}
|
||||
|
||||
|
||||
public function add()
|
||||
{
|
||||
|
||||
// JJO
|
||||
$session = session();
|
||||
|
||||
$requestMethod = $this->request->getMethod();
|
||||
|
||||
if ($requestMethod === 'post') :
|
||||
|
||||
$nullIfEmpty = true; // !(phpversion() >= '8.1');
|
||||
|
||||
$postData = $this->request->getPost();
|
||||
|
||||
$sanitizedData = $this->sanitized($postData, $nullIfEmpty);
|
||||
|
||||
// JJO
|
||||
$sanitizedData['user_created_id'] = $session->id_user;
|
||||
|
||||
$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('Presupuestos.presupuesto'))]);
|
||||
$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('Presupuestos.presupuesto'))]) . '.';
|
||||
$message .= anchor("admin/presupuestos/{$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);
|
||||
return redirect()->to(site_url('presupuestos/presupuestos/edit/' . $id))->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['presupuestoEntity'] = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
|
||||
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_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);
|
||||
$this->viewData['maquinasTarifasImpresionList'] = $this->getMaquinasTarifasImpresionListItems($presupuestoEntity->paginas_negro_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList2'] = $this->getPapelGenericoListItems2($presupuestoEntity->paginas_color_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList2'] = $this->getPapelImpresionListItems2($presupuestoEntity->paginas_color_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList2'] = $this->getMaquinaListItems2($presupuestoEntity->paginas_color_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList2'] = $this->getMaquinasTarifasImpresionListItems2($presupuestoEntity->paginas_color_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList3'] = $this->getPapelGenericoListItems3($presupuestoEntity->paginas_portada_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList3'] = $this->getPapelImpresionListItems3($presupuestoEntity->paginas_portada_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList3'] = $this->getMaquinaListItems3($presupuestoEntity->paginas_portada_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList3'] = $this->getMaquinasTarifasImpresionListItems3($presupuestoEntity->paginas_portada_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList4'] = $this->getPapelGenericoListItems4($presupuestoEntity->paginas_cubierta_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList4'] = $this->getPapelImpresionListItems4($presupuestoEntity->paginas_cubierta_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList4'] = $this->getMaquinaListItems4($presupuestoEntity->paginas_cubierta_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList4'] = $this->getMaquinasTarifasImpresionListItems4($presupuestoEntity->paginas_cubierta_tarifa_impresion_id ?? null);
|
||||
$this->viewData['userList'] = $this->getUserListItems($presupuestoEntity->total_confirmado_user_id ?? null);
|
||||
$this->viewData['userList2'] = $this->getUserListItems2($presupuestoEntity->aprobado_user_id ?? null);
|
||||
$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('createPresupuesto');
|
||||
|
||||
$this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('Presupuestos.moduleTitle') . ' ' . lang('Basic.global.addNewSuffix');
|
||||
|
||||
|
||||
return $this->displayForm(__METHOD__);
|
||||
} // end function add()
|
||||
|
||||
public function edit($requestedId = null)
|
||||
{
|
||||
|
||||
// JJO
|
||||
$session = session();
|
||||
|
||||
if ($requestedId == null) :
|
||||
return $this->redirect2listView();
|
||||
endif;
|
||||
$id = filter_var($requestedId, FILTER_SANITIZE_URL);
|
||||
$presupuestoEntity = $this->model->find($id);
|
||||
|
||||
if ($presupuestoEntity == false) :
|
||||
$message = lang('Basic.global.notFoundWithIdErr', [mb_strtolower(lang('Presupuestos.presupuesto')), $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);
|
||||
if ($this->request->getPost('recoger_en_taller') == null) {
|
||||
$sanitizedData['recoger_en_taller'] = false;
|
||||
}
|
||||
if ($this->request->getPost('ferro') == null) {
|
||||
$sanitizedData['ferro'] = false;
|
||||
}
|
||||
if ($this->request->getPost('ferro_digital') == null) {
|
||||
$sanitizedData['ferro_digital'] = false;
|
||||
}
|
||||
if ($this->request->getPost('marcapaginas') == null) {
|
||||
$sanitizedData['marcapaginas'] = false;
|
||||
}
|
||||
if ($this->request->getPost('papel_formato_personalizado') == null) {
|
||||
$sanitizedData['papel_formato_personalizado'] = false;
|
||||
}
|
||||
if ($this->request->getPost('solapas') == null) {
|
||||
$sanitizedData['solapas'] = false;
|
||||
}
|
||||
if ($this->request->getPost('cosido') == null) {
|
||||
$sanitizedData['cosido'] = false;
|
||||
}
|
||||
if ($this->request->getPost('cubiertas') == null) {
|
||||
$sanitizedData['cubiertas'] = false;
|
||||
}
|
||||
if ($this->request->getPost('imagenes_bn_interior') == null) {
|
||||
$sanitizedData['imagenes_bn_interior'] = false;
|
||||
}
|
||||
if ($this->request->getPost('en_produccion') == null) {
|
||||
$sanitizedData['en_produccion'] = false;
|
||||
}
|
||||
if ($this->request->getPost('en_espera') == null) {
|
||||
$sanitizedData['en_espera'] = false;
|
||||
}
|
||||
if ($this->request->getPost('modo_comparador') == null) {
|
||||
$sanitizedData['modo_comparador'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_negro_hq') == null) {
|
||||
$sanitizedData['paginas_negro_hq'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_negro_check_papel_total') == null) {
|
||||
$sanitizedData['paginas_negro_check_papel_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_negro_check_impresion_total') == null) {
|
||||
$sanitizedData['paginas_negro_check_impresion_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_color_check_papel_total') == null) {
|
||||
$sanitizedData['paginas_color_check_papel_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_color_check_impresion_total') == null) {
|
||||
$sanitizedData['paginas_color_check_impresion_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_portada_check_papel_total') == null) {
|
||||
$sanitizedData['paginas_portada_check_papel_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_portada_check_impresion_total') == null) {
|
||||
$sanitizedData['paginas_portada_check_impresion_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_cubierta_papel_impresion_id') == null) {
|
||||
$sanitizedData['paginas_cubierta_papel_impresion_id'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_cubierta_check_papel_total') == null) {
|
||||
$sanitizedData['paginas_cubierta_check_papel_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('paginas_cubierta_check_impresion_total') == null) {
|
||||
$sanitizedData['paginas_cubierta_check_impresion_total'] = false;
|
||||
}
|
||||
if ($this->request->getPost('isDig') == null) {
|
||||
$sanitizedData['isDig'] = false;
|
||||
}
|
||||
if ($this->request->getPost('envios_recoge_cliente') == null) {
|
||||
$sanitizedData['envios_recoge_cliente'] = false;
|
||||
}
|
||||
if ($this->request->getPost('fecha_entrega_real_warning') == null) {
|
||||
$sanitizedData['fecha_entrega_real_warning'] = false;
|
||||
}
|
||||
|
||||
// JJO
|
||||
$sanitizedData['user_updated_id'] = $session->id_user;
|
||||
|
||||
$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('Presupuestos.presupuesto'))]);
|
||||
$this->session->setFlashdata('formErrors', $this->model->errors());
|
||||
|
||||
endif;
|
||||
|
||||
$presupuestoEntity->fill($sanitizedData);
|
||||
|
||||
$thenRedirect = true;
|
||||
endif;
|
||||
if ($noException && $successfulResult) :
|
||||
$id = $presupuestoEntity->id ?? $id;
|
||||
$message = lang('Basic.global.updateSuccess', [mb_strtolower(lang('Presupuestos.presupuesto'))]) . '.';
|
||||
$message .= anchor("admin/presupuestos/{$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['presupuestoEntity'] = $presupuestoEntity;
|
||||
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_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);
|
||||
$this->viewData['maquinasTarifasImpresionList'] = $this->getMaquinasTarifasImpresionListItems($presupuestoEntity->paginas_negro_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList2'] = $this->getPapelGenericoListItems2($presupuestoEntity->paginas_color_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList2'] = $this->getPapelImpresionListItems2($presupuestoEntity->paginas_color_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList2'] = $this->getMaquinaListItems2($presupuestoEntity->paginas_color_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList2'] = $this->getMaquinasTarifasImpresionListItems2($presupuestoEntity->paginas_color_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList3'] = $this->getPapelGenericoListItems3($presupuestoEntity->paginas_portada_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList3'] = $this->getPapelImpresionListItems3($presupuestoEntity->paginas_portada_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList3'] = $this->getMaquinaListItems3($presupuestoEntity->paginas_portada_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList3'] = $this->getMaquinasTarifasImpresionListItems3($presupuestoEntity->paginas_portada_tarifa_impresion_id ?? null);
|
||||
$this->viewData['papelGenericoList4'] = $this->getPapelGenericoListItems4($presupuestoEntity->paginas_cubierta_papel_id ?? null);
|
||||
$this->viewData['papelImpresionList4'] = $this->getPapelImpresionListItems4($presupuestoEntity->paginas_cubierta_papel_impresion_id ?? null);
|
||||
$this->viewData['maquinaList4'] = $this->getMaquinaListItems4($presupuestoEntity->paginas_cubierta_maquina_id ?? null);
|
||||
$this->viewData['maquinasTarifasImpresionList4'] = $this->getMaquinasTarifasImpresionListItems4($presupuestoEntity->paginas_cubierta_tarifa_impresion_id ?? null);
|
||||
$this->viewData['userList'] = $this->getUserListItems($presupuestoEntity->total_confirmado_user_id ?? null);
|
||||
$this->viewData['userList2'] = $this->getUserListItems2($presupuestoEntity->aprobado_user_id ?? null);
|
||||
$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('updatePresupuesto', $id);
|
||||
|
||||
$this->viewData['boxTitle'] = lang('Basic.global.edit2') . ' ' . lang('Presupuestos.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'] ?? 0;
|
||||
$order = PresupuestoModel::SORTABLE[$requestedOrder >= 0 ? $requestedOrder : 0];
|
||||
$dir = $reqData['order']['0']['dir'] ?? 'asc';
|
||||
|
||||
$resourceData = $this->model->getResource($search)->orderBy($order, $dir)->limit($length, $start)->get()->getResultObject();
|
||||
foreach ($resourceData as $item) :
|
||||
if (isset($item->comentarios_pdf) && strlen($item->comentarios_pdf) > 100) :
|
||||
$item->comentarios_pdf = character_limiter($item->comentarios_pdf, 100);
|
||||
endif;
|
||||
if (isset($item->causa_cancelacion) && strlen($item->causa_cancelacion) > 100) :
|
||||
$item->causa_cancelacion = character_limiter($item->causa_cancelacion, 100);
|
||||
endif;
|
||||
if (isset($item->comentarios) && strlen($item->comentarios) > 100) :
|
||||
$item->comentarios = character_limiter($item->comentarios, 100);
|
||||
endif;
|
||||
if (isset($item->comentarios_safekat) && strlen($item->comentarios_safekat) > 100) :
|
||||
$item->comentarios_safekat = character_limiter($item->comentarios_safekat, 100);
|
||||
endif;
|
||||
if (isset($item->comentarios_tarifa) && strlen($item->comentarios_tarifa) > 100) :
|
||||
$item->comentarios_tarifa = character_limiter($item->comentarios_tarifa, 100);
|
||||
endif;
|
||||
if (isset($item->tirada_alternativa_json_data) && strlen($item->tirada_alternativa_json_data) > 100) :
|
||||
$item->tirada_alternativa_json_data = character_limiter($item->tirada_alternativa_json_data, 100);
|
||||
endif;
|
||||
if (isset($item->titulo) && strlen($item->titulo) > 100) :
|
||||
$item->titulo = character_limiter($item->titulo, 100);
|
||||
endif;
|
||||
if (isset($item->paginas_color_posicion) && strlen($item->paginas_color_posicion) > 100) :
|
||||
$item->paginas_color_posicion = character_limiter($item->paginas_color_posicion, 100);
|
||||
endif;
|
||||
if (isset($item->aprobado_json_data) && strlen($item->aprobado_json_data) > 100) :
|
||||
$item->aprobado_json_data = character_limiter($item->aprobado_json_data, 100);
|
||||
endif;
|
||||
if (isset($item->comparador_json_data) && strlen($item->comparador_json_data) > 100) :
|
||||
$item->comparador_json_data = character_limiter($item->comparador_json_data, 100);
|
||||
endif;
|
||||
if (isset($item->ws_externo_json_data) && strlen($item->ws_externo_json_data) > 100) :
|
||||
$item->ws_externo_json_data = character_limiter($item->ws_externo_json_data, 100);
|
||||
endif;
|
||||
endforeach;
|
||||
|
||||
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 . ', titulo', 'titulo', $onlyActiveOnes, false);
|
||||
$nonItem = new \stdClass;
|
||||
$nonItem->id = '';
|
||||
$nonItem->titulo = '- ' . 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 ?? 'titulo'];
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected function getPaisListItems()
|
||||
{
|
||||
$paisModel = model('App\Models\Configuracion\PaisModel');
|
||||
$onlyActiveOnes = true;
|
||||
$data = $paisModel->getAllForMenu('id, nombre', 'nombre', $onlyActiveOnes);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getUbicacionLibroListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('LgUbicacionesLibros.ubicacionLibro'))])];
|
||||
if (!empty($selId)) :
|
||||
$ubicacionesLibroModel = model('App\Models\Configuracion\UbicacionesLibroModel');
|
||||
|
||||
$selOption = $ubicacionesLibroModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getFormaPagoListItems()
|
||||
{
|
||||
$formasPagoModel = model('App\Models\Configuracion\FormasPagoModel');
|
||||
$onlyActiveOnes = true;
|
||||
$data = $formasPagoModel->getAllForMenu('id, nombre', 'nombre', $onlyActiveOnes);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelImpresionListItems4($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelImpresions.papelImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelImpresionModel = model('App\Models\Presupuestos\PapelImpresionModel');
|
||||
|
||||
$selOption = $papelImpresionModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPresupuestoEstadoListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PresupuestoEstados.presupuestoEstado'))])];
|
||||
if (!empty($selId)) :
|
||||
$presupuestoEstadoModel = model('App\Models\Presupuestos\PresupuestoEstadoModel');
|
||||
|
||||
$selOption = $presupuestoEstadoModel->where('id', $selId)->findColumn('estado');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelGenericoListItems3($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelGenericoes.papelGenerico'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelGenericoModel = model('App\Models\Presupuestos\PapelGenericoModel');
|
||||
|
||||
$selOption = $papelGenericoModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelImpresionListItems2($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelImpresions.papelImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelImpresionModel = model('App\Models\Presupuestos\PapelImpresionModel');
|
||||
|
||||
$selOption = $papelImpresionModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinaListItems3($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Maquinas.maquina'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinaModel = model('App\Models\Presupuestos\MaquinaModel');
|
||||
|
||||
$selOption = $maquinaModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinasTarifasImpresionListItems2($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('MaquinasTarifasImpresions.maquinasTarifasImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinasTarifasImpresionModel = model('App\Models\Presupuestos\MaquinasTarifasImpresionModel');
|
||||
|
||||
$selOption = $maquinasTarifasImpresionModel->where('id', $selId)->findColumn('precio');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelGenericoListItems2($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelGenericoes.papelGenerico'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelGenericoModel = model('App\Models\Presupuestos\PapelGenericoModel');
|
||||
|
||||
$selOption = $papelGenericoModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinaListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Maquinas.maquina'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinaModel = model('App\Models\Presupuestos\MaquinaModel');
|
||||
|
||||
$selOption = $maquinaModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Maquinas.maquina'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinaModel = model('App\Models\Presupuestos\MaquinaModel');
|
||||
|
||||
$selOption = $maquinaModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getTipologiasLibroListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('TipologiasLibros.tipologiasLibro'))])];
|
||||
if (!empty($selId)) :
|
||||
$tipologiasLibroModel = model('App\Models\Presupuestos\TipologiasLibroModel');
|
||||
|
||||
$selOption = $tipologiasLibroModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelImpresionListItems3($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelImpresions.papelImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelImpresionModel = model('App\Models\Presupuestos\PapelImpresionModel');
|
||||
|
||||
$selOption = $papelImpresionModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinasTarifasImpresionListItems4($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('MaquinasTarifasImpresions.maquinasTarifasImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinasTarifasImpresionModel = model('App\Models\Presupuestos\MaquinasTarifasImpresionModel');
|
||||
|
||||
$selOption = $maquinasTarifasImpresionModel->where('id', $selId)->findColumn('precio');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getUserListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Users.user'))])];
|
||||
if (!empty($selId)) :
|
||||
$userModel = model('App\Models\Presupuestos\UserModel');
|
||||
|
||||
$selOption = $userModel->where('id_user', $selId)->findColumn('first_name');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinasTarifasImpresionListItems3($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('MaquinasTarifasImpresions.maquinasTarifasImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinasTarifasImpresionModel = model('App\Models\Presupuestos\MaquinasTarifasImpresionModel');
|
||||
|
||||
$selOption = $maquinasTarifasImpresionModel->where('id', $selId)->findColumn('id');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getUserListItems3($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Users.user'))])];
|
||||
if (!empty($selId)) :
|
||||
$userModel = model('App\Models\Presupuestos\UserModel');
|
||||
|
||||
$selOption = $userModel->where('id_user', $selId)->findColumn('first_name');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelImpresionListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelImpresions.papelImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelImpresionModel = model('App\Models\Presupuestos\PapelImpresionModel');
|
||||
|
||||
$selOption = $papelImpresionModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getTiposImpresionListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('TiposImpresions.tiposImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$tiposImpresionModel = model('App\Models\Presupuestos\TiposImpresionModel');
|
||||
|
||||
$selOption = $tiposImpresionModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getMaquinasTarifasImpresionListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('MaquinasTarifasImpresions.maquinasTarifasImpresion'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinasTarifasImpresionModel = model('App\Models\Presupuestos\MaquinasTarifasImpresionModel');
|
||||
|
||||
$selOption = $maquinasTarifasImpresionModel->where('id', $selId)->findColumn('precio');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelGenericoListItems4($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelGenericoes.papelGenerico'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelGenericoModel = model('App\Models\Presupuestos\PapelGenericoModel');
|
||||
|
||||
$selOption = $papelGenericoModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
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'))])];
|
||||
if (!empty($selId)) :
|
||||
$maquinaModel = model('App\Models\Presupuestos\MaquinaModel');
|
||||
|
||||
$selOption = $maquinaModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getUserListItems2($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Users.user'))])];
|
||||
if (!empty($selId)) :
|
||||
$userModel = model('App\Models\Presupuestos\UserModel');
|
||||
|
||||
$selOption = $userModel->where('id_user', $selId)->findColumn('first_name');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPapelGenericoListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('PapelGenericoes.papelGenerico'))])];
|
||||
if (!empty($selId)) :
|
||||
$papelGenericoModel = model('App\Models\Presupuestos\PapelGenericoModel');
|
||||
|
||||
$selOption = $papelGenericoModel->where('id', $selId)->findColumn('nombre');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
endif;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function getPaginasCubiertaOptions()
|
||||
{
|
||||
$paginasCubiertaOptions = [
|
||||
'' => lang('Basic.global.pleaseSelect'),
|
||||
'4x0' => '4x0',
|
||||
'4x4' => '4x4',
|
||||
];
|
||||
return $paginasCubiertaOptions;
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected function getPaginasPortadaOptions()
|
||||
{
|
||||
$paginasPortadaOptions = [
|
||||
'' => lang('Basic.global.pleaseSelect'),
|
||||
'4x0' => '4x0',
|
||||
'4x4' => '4x4',
|
||||
];
|
||||
return $paginasPortadaOptions;
|
||||
}
|
||||
}
|
||||
|
||||
317
ci4/app/Entities/Presupuestos/PresupuestoEntity.php
Normal file
317
ci4/app/Entities/Presupuestos/PresupuestoEntity.php
Normal file
@ -0,0 +1,317 @@
|
||||
<?php
|
||||
namespace App\Entities\Presupuestos;
|
||||
|
||||
use CodeIgniter\Entity;
|
||||
|
||||
class PresupuestoEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
"id" => null,
|
||||
"pedido_libro_conjunto_id" => null,
|
||||
"version" => 0,
|
||||
"cliente_id" => null,
|
||||
"tarifa_cliente_id" => null,
|
||||
"user_created_id" => 1,
|
||||
"user_update_id" => null,
|
||||
"forma_pago_id" => null,
|
||||
"factura_id" => null,
|
||||
"tipo_impresion_id" => null,
|
||||
"tipologia_id" => null,
|
||||
"pais_id" => 1,
|
||||
"ubicacion_id" => 1,
|
||||
"serie_id" => null,
|
||||
"catalogo_id" => null,
|
||||
"estado_id" => 1,
|
||||
"inc_rei" => null,
|
||||
"causa_cancelacion" => null,
|
||||
"recoger_en_taller" => false,
|
||||
"ferro" => false,
|
||||
"ferro_digital" => false,
|
||||
"marcapaginas" => false,
|
||||
"papel_formato_id" => null,
|
||||
"papel_formato_personalizado" => false,
|
||||
"papel_formato_ancho" => null,
|
||||
"papel_formato_alto" => null,
|
||||
"titulo" => "titulo",
|
||||
"autor" => null,
|
||||
"coleccion" => null,
|
||||
"numero_edicion" => null,
|
||||
"isbn" => null,
|
||||
"referencia_cliente" => null,
|
||||
"paginas" => null,
|
||||
"tirada" => null,
|
||||
"solapas" => false,
|
||||
"solapas_ancho" => 0.0,
|
||||
"cosido" => false,
|
||||
"cubiertas" => false,
|
||||
"cubiertas_ancho" => 0.0,
|
||||
"merma" => null,
|
||||
"merma_portada" => 6.0,
|
||||
"imagenes_bn_interior" => false,
|
||||
"comentarios" => null,
|
||||
"comentarios_safekat" => null,
|
||||
"comentarios_pdf" => null,
|
||||
"comentarios_tarifa" => null,
|
||||
"en_produccion" => false,
|
||||
"en_espera" => false,
|
||||
"modo_comparador" => false,
|
||||
"paginas_negro" => null,
|
||||
"paginas_negro_hq" => false,
|
||||
"paginas_negro_papel_id" => null,
|
||||
"paginas_negro_papel_impresion_id" => null,
|
||||
"paginas_negro_forma_id" => null,
|
||||
"paginas_negro_gramaje" => null,
|
||||
"paginas_negro_pliegos_libro" => null,
|
||||
"paginas_negro_pliegos_pedido" => null,
|
||||
"paginas_negro_pliegos_precio" => null,
|
||||
"paginas_negro_libro" => null,
|
||||
"paginas_negro_pedido" => null,
|
||||
"paginas_negro_mano" => null,
|
||||
"paginas_negro_peso" => null,
|
||||
"paginas_negro_maquina_id" => null,
|
||||
"paginas_negro_tarifa_impresion_id" => null,
|
||||
"paginas_negro_click" => null,
|
||||
"paginas_negro_precio" => null,
|
||||
"paginas_negro_check_papel_total" => true,
|
||||
"paginas_negro_check_impresion_total" => true,
|
||||
"paginas_color" => null,
|
||||
"paginas_color_papel_id" => null,
|
||||
"paginas_color_papel_impresion_id" => null,
|
||||
"paginas_color_forma_id" => null,
|
||||
"paginas_color_gramaje" => null,
|
||||
"paginas_color_pliegos_libro" => null,
|
||||
"paginas_color_pliegos_pedido" => null,
|
||||
"paginas_color_pliegos_precio" => null,
|
||||
"paginas_color_libro" => null,
|
||||
"paginas_color_pedido" => null,
|
||||
"paginas_color_mano" => null,
|
||||
"paginas_color_peso" => null,
|
||||
"paginas_color_maquina_id" => null,
|
||||
"paginas_color_tarifa_impresion_id" => null,
|
||||
"paginas_color_click" => null,
|
||||
"paginas_color_precio" => null,
|
||||
"paginas_color_check_papel_total" => true,
|
||||
"paginas_color_check_impresion_total" => true,
|
||||
"paginas_color_posicion" => null,
|
||||
"paginas_portada" => null,
|
||||
"paginas_portada_papel_id" => null,
|
||||
"paginas_portada_papel_impresion_id" => null,
|
||||
"paginas_portada_forma_id" => null,
|
||||
"paginas_portada_gramaje" => null,
|
||||
"paginas_portada_pliegos_libro" => null,
|
||||
"paginas_portada_pliegos_pedido" => null,
|
||||
"paginas_portada_pliegos_precio" => null,
|
||||
"paginas_portada_libro" => null,
|
||||
"paginas_portada_pedido" => null,
|
||||
"paginas_portada_mano" => null,
|
||||
"paginas_portada_peso" => null,
|
||||
"paginas_portada_maquina_id" => null,
|
||||
"paginas_portada_tarifa_impresion_id" => null,
|
||||
"paginas_portada_click" => null,
|
||||
"paginas_portada_precio" => null,
|
||||
"paginas_portada_check_papel_total" => true,
|
||||
"paginas_portada_check_impresion_total" => true,
|
||||
"paginas_cubierta" => null,
|
||||
"paginas_cubierta_papel_id" => null,
|
||||
"paginas_cubierta_papel_impresion_id" => null,
|
||||
"paginas_cubierta_forma_id" => null,
|
||||
"paginas_cubierta_gramaje" => null,
|
||||
"paginas_cubierta_pliegos_libro" => null,
|
||||
"paginas_cubierta_pliegos_pedido" => null,
|
||||
"paginas_cubierta_pliegos_precio" => null,
|
||||
"paginas_cubierta_libro" => null,
|
||||
"paginas_cubierta_pedido" => null,
|
||||
"paginas_cubierta_mano" => null,
|
||||
"paginas_cubierta_peso" => null,
|
||||
"paginas_cubierta_maquina_id" => null,
|
||||
"paginas_cubierta_tarifa_impresion_id" => null,
|
||||
"paginas_cubierta_click" => null,
|
||||
"paginas_cubierta_precio" => null,
|
||||
"paginas_cubierta_check_papel_total" => true,
|
||||
"paginas_cubierta_check_impresion_total" => true,
|
||||
"lomo" => null,
|
||||
"isDig" => false,
|
||||
"total_presupuesto" => null,
|
||||
"total_pedido" => null,
|
||||
"total_peso" => null,
|
||||
"total_click" => null,
|
||||
"total_preimpresion" => null,
|
||||
"total_preimpresion_margen" => null,
|
||||
"total_manipulado" => null,
|
||||
"total_acabado" => null,
|
||||
"total_envios" => null,
|
||||
"envios_recoge_cliente" => false,
|
||||
"margen" => null,
|
||||
"margen_extra" => 0.0,
|
||||
"margen_manual" => null,
|
||||
"descuento" => 0.0,
|
||||
"base_imponible" => null,
|
||||
"total_margen" => null,
|
||||
"total_margen_extra" => null,
|
||||
"total_descuento" => null,
|
||||
"total" => null,
|
||||
"forzar_total" => 0,
|
||||
"total_calculado" => null,
|
||||
"total_confirmado" => null,
|
||||
"total_confirmado_user_id" => null,
|
||||
"total_confirmado_update_at" => null,
|
||||
"tirada_alternativa_json_data" => null,
|
||||
"aprobado_user_id" => null,
|
||||
"aprobado_at" => null,
|
||||
"aprobado_json_data" => null,
|
||||
"comparador_json_data" => null,
|
||||
"ws_externo_json_data" => null,
|
||||
"fecha_entrega_real_at" => null,
|
||||
"fecha_entrega_real_warning" => false,
|
||||
"fecha_impresion_at" => null,
|
||||
"fecha_encuardenado_at" => null,
|
||||
"fecha_externo_at" => null,
|
||||
"fecha_ferro_subido_at" => null,
|
||||
"responsable" => null,
|
||||
"pedido_espera_fecha" => null,
|
||||
"pedido_espera_user_id" => null,
|
||||
"is_deleted" => 0,
|
||||
"deleted_at" => null,
|
||||
"created_at" => null,
|
||||
"updated_at" => null,
|
||||
];
|
||||
protected $casts = [
|
||||
"pedido_libro_conjunto_id" => "?int",
|
||||
"version" => "int",
|
||||
"cliente_id" => "int",
|
||||
"tarifa_cliente_id" => "?int",
|
||||
"user_created_id" => "int",
|
||||
"user_update_id" => "?int",
|
||||
"forma_pago_id" => "?int",
|
||||
"factura_id" => "?int",
|
||||
"tipo_impresion_id" => "?int",
|
||||
"tipologia_id" => "?int",
|
||||
"pais_id" => "int",
|
||||
"ubicacion_id" => "int",
|
||||
"serie_id" => "?int",
|
||||
"catalogo_id" => "?int",
|
||||
"estado_id" => "int",
|
||||
"inc_rei" => "?int",
|
||||
"recoger_en_taller" => "boolean",
|
||||
"ferro" => "boolean",
|
||||
"ferro_digital" => "boolean",
|
||||
"marcapaginas" => "boolean",
|
||||
"papel_formato_id" => "int",
|
||||
"papel_formato_personalizado" => "boolean",
|
||||
"papel_formato_ancho" => "?float",
|
||||
"papel_formato_alto" => "?float",
|
||||
"paginas" => "int",
|
||||
"tirada" => "int",
|
||||
"solapas" => "boolean",
|
||||
"solapas_ancho" => "float",
|
||||
"cosido" => "boolean",
|
||||
"cubiertas" => "boolean",
|
||||
"cubiertas_ancho" => "float",
|
||||
"merma" => "float",
|
||||
"merma_portada" => "float",
|
||||
"imagenes_bn_interior" => "boolean",
|
||||
"en_produccion" => "boolean",
|
||||
"en_espera" => "boolean",
|
||||
"modo_comparador" => "boolean",
|
||||
"paginas_negro" => "?int",
|
||||
"paginas_negro_hq" => "boolean",
|
||||
"paginas_negro_papel_id" => "?int",
|
||||
"paginas_negro_papel_impresion_id" => "?int",
|
||||
"paginas_negro_forma_id" => "?int",
|
||||
"paginas_negro_gramaje" => "?float",
|
||||
"paginas_negro_pliegos_libro" => "?float",
|
||||
"paginas_negro_pliegos_pedido" => "?float",
|
||||
"paginas_negro_pliegos_precio" => "?float",
|
||||
"paginas_negro_libro" => "?float",
|
||||
"paginas_negro_pedido" => "?float",
|
||||
"paginas_negro_mano" => "?float",
|
||||
"paginas_negro_peso" => "?float",
|
||||
"paginas_negro_maquina_id" => "?int",
|
||||
"paginas_negro_tarifa_impresion_id" => "?int",
|
||||
"paginas_negro_click" => "?float",
|
||||
"paginas_negro_precio" => "?float",
|
||||
"paginas_negro_check_papel_total" => "boolean",
|
||||
"paginas_negro_check_impresion_total" => "boolean",
|
||||
"paginas_color" => "?int",
|
||||
"paginas_color_papel_id" => "?int",
|
||||
"paginas_color_papel_impresion_id" => "?int",
|
||||
"paginas_color_forma_id" => "?int",
|
||||
"paginas_color_gramaje" => "?float",
|
||||
"paginas_color_pliegos_libro" => "?float",
|
||||
"paginas_color_pliegos_pedido" => "?float",
|
||||
"paginas_color_pliegos_precio" => "?float",
|
||||
"paginas_color_libro" => "?float",
|
||||
"paginas_color_pedido" => "?float",
|
||||
"paginas_color_mano" => "?float",
|
||||
"paginas_color_peso" => "?float",
|
||||
"paginas_color_maquina_id" => "?int",
|
||||
"paginas_color_tarifa_impresion_id" => "?int",
|
||||
"paginas_color_click" => "?float",
|
||||
"paginas_color_precio" => "?float",
|
||||
"paginas_color_check_papel_total" => "boolean",
|
||||
"paginas_color_check_impresion_total" => "boolean",
|
||||
"paginas_portada_papel_id" => "?int",
|
||||
"paginas_portada_papel_impresion_id" => "?int",
|
||||
"paginas_portada_forma_id" => "?int",
|
||||
"paginas_portada_gramaje" => "?float",
|
||||
"paginas_portada_pliegos_libro" => "?float",
|
||||
"paginas_portada_pliegos_pedido" => "?float",
|
||||
"paginas_portada_pliegos_precio" => "?float",
|
||||
"paginas_portada_libro" => "?float",
|
||||
"paginas_portada_pedido" => "float",
|
||||
"paginas_portada_mano" => "?float",
|
||||
"paginas_portada_peso" => "?float",
|
||||
"paginas_portada_maquina_id" => "?int",
|
||||
"paginas_portada_tarifa_impresion_id" => "?int",
|
||||
"paginas_portada_click" => "?float",
|
||||
"paginas_portada_precio" => "?float",
|
||||
"paginas_portada_check_papel_total" => "boolean",
|
||||
"paginas_portada_check_impresion_total" => "boolean",
|
||||
"paginas_cubierta_papel_id" => "?int",
|
||||
"paginas_cubierta_papel_impresion_id" => "?int",
|
||||
"paginas_cubierta_forma_id" => "?int",
|
||||
"paginas_cubierta_gramaje" => "?float",
|
||||
"paginas_cubierta_pliegos_libro" => "?float",
|
||||
"paginas_cubierta_pliegos_pedido" => "?float",
|
||||
"paginas_cubierta_pliegos_precio" => "?float",
|
||||
"paginas_cubierta_libro" => "?float",
|
||||
"paginas_cubierta_pedido" => "?float",
|
||||
"paginas_cubierta_mano" => "?float",
|
||||
"paginas_cubierta_peso" => "?float",
|
||||
"paginas_cubierta_maquina_id" => "?int",
|
||||
"paginas_cubierta_tarifa_impresion_id" => "?int",
|
||||
"paginas_cubierta_click" => "?float",
|
||||
"paginas_cubierta_precio" => "?float",
|
||||
"paginas_cubierta_check_papel_total" => "boolean",
|
||||
"paginas_cubierta_check_impresion_total" => "boolean",
|
||||
"lomo" => "?int",
|
||||
"isDig" => "boolean",
|
||||
"total_presupuesto" => "?float",
|
||||
"total_pedido" => "?float",
|
||||
"total_peso" => "?float",
|
||||
"total_click" => "?float",
|
||||
"total_preimpresion" => "?float",
|
||||
"total_preimpresion_margen" => "?float",
|
||||
"total_manipulado" => "?float",
|
||||
"total_acabado" => "?float",
|
||||
"total_envios" => "?float",
|
||||
"envios_recoge_cliente" => "boolean",
|
||||
"margen" => "?float",
|
||||
"margen_extra" => "float",
|
||||
"margen_manual" => "?float",
|
||||
"descuento" => "float",
|
||||
"base_imponible" => "?float",
|
||||
"total_margen" => "?float",
|
||||
"total_margen_extra" => "?float",
|
||||
"total_descuento" => "?float",
|
||||
"total" => "?float",
|
||||
"forzar_total" => "float",
|
||||
"total_calculado" => "?float",
|
||||
"total_confirmado" => "?float",
|
||||
"total_confirmado_user_id" => "?int",
|
||||
"aprobado_user_id" => "?int",
|
||||
"fecha_entrega_real_warning" => "?boolean",
|
||||
"pedido_espera_user_id" => "?int",
|
||||
"is_deleted" => "int",
|
||||
];
|
||||
}
|
||||
19
ci4/app/Entities/Presupuestos/PresupuestoEstadoEntity.php
Normal file
19
ci4/app/Entities/Presupuestos/PresupuestoEstadoEntity.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace App\Entities\Presupuestos;
|
||||
|
||||
use CodeIgniter\Entity;
|
||||
|
||||
class PresupuestoEstadoEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
"id" => null,
|
||||
"estado" => null,
|
||||
"is_deleted" => 0,
|
||||
"deleted_at" => null,
|
||||
"created_at" => null,
|
||||
"updated_at" => null,
|
||||
];
|
||||
protected $casts = [
|
||||
"is_deleted" => "int",
|
||||
];
|
||||
}
|
||||
772
ci4/app/Language/en/Presupuestos.php
Normal file
772
ci4/app/Language/en/Presupuestos.php
Normal file
@ -0,0 +1,772 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'factura_id' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_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_impresion_at' => [
|
||||
'valid_date' => 'The {field} field must contain a valid date.',
|
||||
|
||||
],
|
||||
|
||||
'inc_rei' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'isbn' => [
|
||||
'max_length' => 'The {field} field cannot exceed {param} characters in length.',
|
||||
|
||||
],
|
||||
|
||||
'lomo' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'margen' => [
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'paginas_color' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_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_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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_precio' => [
|
||||
'decimal' => 'The {field} field must contain a decimal number.',
|
||||
|
||||
],
|
||||
|
||||
'paginas_negro' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_precio' => [
|
||||
'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_gramaje' => [
|
||||
'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_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_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_precio' => [
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'responsable' => [
|
||||
'max_length' => 'The {field} field cannot exceed {param} characters in length.',
|
||||
|
||||
],
|
||||
|
||||
'serie_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.',
|
||||
|
||||
],
|
||||
|
||||
'total' => [
|
||||
'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_click' => [
|
||||
'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_descuento' => [
|
||||
'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_margen' => [
|
||||
'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_peso' => [
|
||||
'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_presupuesto' => [
|
||||
'decimal' => 'The {field} field must contain a decimal number.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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_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_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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'merma' => [
|
||||
'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_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_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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'version' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
'required' => 'The {field} field is required.',
|
||||
|
||||
],
|
||||
|
||||
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
772
ci4/app/Language/es/Presupuestos.php
Normal file
772
ci4/app/Language/es/Presupuestos.php
Normal file
@ -0,0 +1,772 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'factura_id' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_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_impresion_at' => [
|
||||
'valid_date' => 'The {field} field must contain a valid date.',
|
||||
|
||||
],
|
||||
|
||||
'inc_rei' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'isbn' => [
|
||||
'max_length' => 'The {field} field cannot exceed {param} characters in length.',
|
||||
|
||||
],
|
||||
|
||||
'lomo' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'margen' => [
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'paginas_color' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_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_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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_precio' => [
|
||||
'decimal' => 'The {field} field must contain a decimal number.',
|
||||
|
||||
],
|
||||
|
||||
'paginas_negro' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
|
||||
],
|
||||
|
||||
'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_gramaje' => [
|
||||
'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_pedido' => [
|
||||
'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_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_precio' => [
|
||||
'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_gramaje' => [
|
||||
'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_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_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_precio' => [
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'responsable' => [
|
||||
'max_length' => 'The {field} field cannot exceed {param} characters in length.',
|
||||
|
||||
],
|
||||
|
||||
'serie_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.',
|
||||
|
||||
],
|
||||
|
||||
'total' => [
|
||||
'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_click' => [
|
||||
'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_descuento' => [
|
||||
'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_margen' => [
|
||||
'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_peso' => [
|
||||
'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_presupuesto' => [
|
||||
'decimal' => 'The {field} field must contain a decimal number.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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_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_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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'merma' => [
|
||||
'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_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_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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'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.',
|
||||
|
||||
],
|
||||
|
||||
'version' => [
|
||||
'integer' => 'The {field} field must contain an integer.',
|
||||
'required' => 'The {field} field is required.',
|
||||
|
||||
],
|
||||
|
||||
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
88
ci4/app/Models/Presupuestos/PresupuestoEstadoModel.php
Normal file
88
ci4/app/Models/Presupuestos/PresupuestoEstadoModel.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
namespace App\Models\Presupuestos;
|
||||
|
||||
class PresupuestoEstadoModel extends \App\Models\GoBaseModel
|
||||
{
|
||||
protected $table = "presupuesto_estados";
|
||||
|
||||
/**
|
||||
* Whether primary key uses auto increment.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
const SORTABLE = [
|
||||
1 => "t1.id",
|
||||
2 => "t1.estado",
|
||||
3 => "t1.is_deleted",
|
||||
4 => "t1.created_at",
|
||||
5 => "t1.updated_at",
|
||||
];
|
||||
|
||||
protected $allowedFields = ["estado", "is_deleted"];
|
||||
protected $returnType = "App\Entities\Presupuestos\PresupuestoEstadoEntity";
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $useSoftDeletes = false;
|
||||
|
||||
protected $createdField = "created_at";
|
||||
|
||||
protected $updatedField = "updated_at";
|
||||
|
||||
public static $labelField = "estado";
|
||||
|
||||
protected $validationRules = [
|
||||
"estado" => [
|
||||
"label" => "PresupuestoEstados.estado",
|
||||
"rules" => "trim|required|max_length[50]",
|
||||
],
|
||||
"is_deleted" => [
|
||||
"label" => "PresupuestoEstados.isDeleted",
|
||||
"rules" => "required|integer",
|
||||
],
|
||||
];
|
||||
|
||||
protected $validationMessages = [
|
||||
"estado" => [
|
||||
"max_length" => "PresupuestoEstados.validation.estado.max_length",
|
||||
"required" => "PresupuestoEstados.validation.estado.required",
|
||||
],
|
||||
"is_deleted" => [
|
||||
"integer" => "PresupuestoEstados.validation.is_deleted.integer",
|
||||
"required" => "PresupuestoEstados.validation.is_deleted.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.estado AS estado, t1.is_deleted AS is_deleted, t1.created_at AS created_at, t1.updated_at AS updated_at"
|
||||
);
|
||||
|
||||
return empty($search)
|
||||
? $builder
|
||||
: $builder
|
||||
->groupStart()
|
||||
->like("t1.id", $search)
|
||||
->orLike("t1.estado", $search)
|
||||
->orLike("t1.is_deleted", $search)
|
||||
->orLike("t1.created_at", $search)
|
||||
->orLike("t1.updated_at", $search)
|
||||
->orLike("t1.id", $search)
|
||||
->orLike("t1.estado", $search)
|
||||
->orLike("t1.is_deleted", $search)
|
||||
->orLike("t1.created_at", $search)
|
||||
->orLike("t1.updated_at", $search)
|
||||
->groupEnd();
|
||||
}
|
||||
}
|
||||
1101
ci4/app/Models/Presupuestos/PresupuestoModel.php
Normal file
1101
ci4/app/Models/Presupuestos/PresupuestoModel.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,783 @@
|
||||
<?= $this->include("Themes/_commonPartialsBs/select2bs5") ?>
|
||||
<?= $this->include("Themes/_commonPartialsBs/sweetalert") ?>
|
||||
<?= $this->extend("Themes/" . config("Basics")->theme["name"] . "/AdminLayout/defaultLayout") ?>
|
||||
<?= $this->section("content") ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card card-info">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
|
||||
</div><!--//.card-header -->
|
||||
<form id="presupuestoForm" method="post" action="<?= $formAction ?>">
|
||||
<?= csrf_field() ?>
|
||||
<div class="card-body">
|
||||
<?= view("Themes/_commonPartialsBs/_alertBoxes") ?>
|
||||
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
||||
<?= view("themes/backend/vuexy/form/presupuestos/_presupuestoFormItems") ?>
|
||||
</div><!-- /.card-body -->
|
||||
<div class="card-footer">
|
||||
<?= anchor(route_to("presupuestoList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?>
|
||||
<input type="submit" class="btn btn-primary float-end" name="save" value="<?= lang("Basic.global.Save") ?>">
|
||||
</div><!-- /.card-footer -->
|
||||
</form>
|
||||
</div><!-- //.card -->
|
||||
</div><!--//.col -->
|
||||
</div><!--//.row -->
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
|
||||
<?= $this->section("additionalInlineJs") ?>
|
||||
|
||||
|
||||
$('#papelFormatoId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelesFormatos") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'id',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#clienteId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfClientes") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasCubiertaPapelImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#tipoImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfTiposImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasColorTarifaImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinasTarifasImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'precio',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasColorPapelId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelGenericoes") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasNegroTarifaImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinasTarifasImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'precio',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasNegroPapelId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelGenericoes") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasCubiertaTarifaImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinasTarifasImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'precio',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasCubiertaPapelId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelGenericoes") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasPortadaPapelId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelGenericoes") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#totalConfirmadoUserId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfUsers") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id_user',
|
||||
text: 'first_name',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#tipologiaId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfTipologiasLibros") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#aprobadoUserId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfUsers") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id_user',
|
||||
text: 'first_name',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#pedidoEsperaUserId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfUsers") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id_user',
|
||||
text: 'first_name',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasNegroMaquinaId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinas") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#estadoId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPresupuestosEstados") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'estado',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasColorMaquinaId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinas") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasNegroPapelImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasCubiertaMaquinaId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinas") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#ubicacionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfUbicacionesLibros") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasPortadaMaquinaId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinas") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasPortadaTarifaImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinasTarifasImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'id',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasColorPapelImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#paginasPortadaPapelImpresionId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfPapelImpresions") ?>',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
|
||||
data: function (params) {
|
||||
return {
|
||||
id: 'id',
|
||||
text: 'nombre',
|
||||
searchTerm: params.term,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
};
|
||||
},
|
||||
delay: 60,
|
||||
processResults: function (response) {
|
||||
|
||||
yeniden(response.<?= csrf_token() ?>);
|
||||
|
||||
return {
|
||||
results: response.menu
|
||||
};
|
||||
},
|
||||
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
@ -0,0 +1,202 @@
|
||||
<?=$this->include('themes/_commonPartialsBs/select2bs5') ?>
|
||||
<?=$this->include('themes/_commonPartialsBs/datatables') ?>
|
||||
<?=$this->include('themes/_commonPartialsBs/sweetalert') ?>
|
||||
<?= $this->include('themes/_commonPartialsBs/_confirm2delete') ?>
|
||||
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
|
||||
<?=$this->section('content'); ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card card-info">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?=lang('Presupuestos.presupuestoList') ?></h3>
|
||||
<?=anchor(route_to('newCosidotapablanda'), lang('Basic.global.addNew').' '.lang('Presupuestos.presupuesto'), ['class'=>'btn btn-primary float-end']); ?>
|
||||
</div><!--//.card-header -->
|
||||
<div class="card-body">
|
||||
<?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
|
||||
|
||||
<table id="tableOfPresupuestos" class="table table-striped table-hover" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?=lang('Presupuestos.id')?></th>
|
||||
<th><?= lang('Presupuestos.updatedAt') ?></th>
|
||||
<th><?= lang('Clientes.cliente') ?></th>
|
||||
<th><?= lang('Presupuestos.comercial') ?></th>
|
||||
<th><?= lang('Presupuestos.titulo') ?></th>
|
||||
<th><?= lang('LgUbicacionesLibros.ubicacionLibro') ?></th>
|
||||
<th><?= lang('Paises.pais') ?></th>
|
||||
<th><?= lang('Presupuestos.incRei') ?></th>
|
||||
<th><?= lang('Presupuestos.paginas') ?></th>
|
||||
<th><?= lang('Presupuestos.tirada') ?></th>
|
||||
<th><?= lang('Presupuestos.totalPedido') ?></th>
|
||||
<th><?= lang('PresupuestoEstados.presupuestoEstado') ?></th>
|
||||
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!--//.card-body -->
|
||||
<div class="card-footer">
|
||||
|
||||
</div><!--//.card-footer -->
|
||||
</div><!--//.card -->
|
||||
</div><!--//.col -->
|
||||
</div><!--//.row -->
|
||||
|
||||
<?=$this->endSection() ?>
|
||||
|
||||
|
||||
<?=$this->section('additionalInlineJs') ?>
|
||||
|
||||
const lastColNr = $('#tableOfPresupuestos').find("tr:first th").length - 1;
|
||||
const actionBtns = function(data) {
|
||||
return `<td class="text-right py-0 align-middle">
|
||||
<div class="btn-group btn-group-sm">
|
||||
<button class="btn btn-sm btn-warning btn-edit me-1" data-id="${data.id}"><?= lang('Basic.global.edit') ?></button>
|
||||
<button class="btn btn-sm btn-danger btn-delete ms-1" data-id="${data.id}"><?= lang('Basic.global.Delete') ?></button>
|
||||
</div>
|
||||
</td>`;
|
||||
};
|
||||
theTable = $('#tableOfPresupuestos').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
autoWidth: true,
|
||||
responsive: true,
|
||||
scrollX: true,
|
||||
lengthMenu: [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ],
|
||||
pageLength: 50,
|
||||
lengthChange: true,
|
||||
"dom": 'lfBrtip',
|
||||
"buttons": [
|
||||
'copy', 'csv', 'excel', 'print', {
|
||||
extend: 'pdfHtml5',
|
||||
orientation: 'landscape',
|
||||
pageSize: 'A4'
|
||||
}
|
||||
],
|
||||
stateSave: true,
|
||||
order: [[1, 'asc']],
|
||||
language: {
|
||||
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
|
||||
},
|
||||
ajax : $.fn.dataTable.pipeline( {
|
||||
url: '<?= route_to('dataTableOfCosidotapablanda') ?>',
|
||||
method: 'POST',
|
||||
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
||||
async: true,
|
||||
}),
|
||||
columnDefs: [
|
||||
{
|
||||
orderable: false,
|
||||
searchable: false,
|
||||
targets: [lastColNr]
|
||||
}
|
||||
],
|
||||
columns : [
|
||||
{ 'data': 'id' },
|
||||
{ 'data': 'fecha' },
|
||||
{ 'data': 'cliente' },
|
||||
{ 'data': 'comercial' },
|
||||
{ 'data': 'titulo' },
|
||||
{ 'data': 'ubicacion' },
|
||||
{ 'data': 'pais' },
|
||||
{ 'data': 'inc_rei' },
|
||||
{ 'data': 'paginas' },
|
||||
{ 'data': 'tirada' },
|
||||
{ 'data': 'total_pedido' },
|
||||
{ 'data': 'estado' },
|
||||
{ 'data': actionBtns }
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
theTable.on( 'draw.dt', function () {
|
||||
|
||||
const dateCols = [1];
|
||||
const shortDateFormat = '<?= convertPhpDateToMomentFormat('mm/dd/YYYY')?>';
|
||||
const dateTimeFormat = '<?= convertPhpDateToMomentFormat('mm/dd/YYYY h:i a')?>';
|
||||
|
||||
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 = `<?= route_to('presupuestoList') ?>/${$(this).attr('data-id')}/edit`;
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-delete', function(e) {
|
||||
Swal.fire({
|
||||
title: '<?= lang('Basic.global.sweet.sureToDeleteTitle', [mb_strtolower(lang('Presupuestos.presupuesto'))]) ?>',
|
||||
text: '<?= lang('Basic.global.sweet.sureToDeleteText') ?>',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
confirmButtonText: '<?= lang('Basic.global.sweet.deleteConfirmationButton') ?>',
|
||||
cancelButtonText: '<?= lang('Basic.global.Cancel') ?>',
|
||||
cancelButtonColor: '#d33'
|
||||
})
|
||||
.then((result) => {
|
||||
const dataId = $(this).data('id');
|
||||
const row = $(this).closest('tr');
|
||||
if (result.value) {
|
||||
$.ajax({
|
||||
url: `<?= route_to('presupuestoList') ?>/${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,
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
<?=$this->endSection() ?>
|
||||
|
||||
|
||||
<?=$this->section('css') ?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.3/css/buttons.<?=config('Basics')->theme['name'] == 'Bootstrap5' ? 'bootstrap5' : 'bootstrap4' ?>.min.css">
|
||||
<?=$this->endSection() ?>
|
||||
|
||||
|
||||
<?= $this->section('additionalExternalJs') ?>
|
||||
<script src="https://cdn.datatables.net/buttons/2.2.3/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.<?=config('Basics')->theme['name'] == 'Bootstrap5' ? 'bootstrap5' : 'bootstrap4' ?>.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.print.min.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.0/jszip.min.js" integrity="sha512-xcHCGC5tQ0SHlRX8Anbz6oy/OullASJkEhb4gjkneVpGE3/QGYejf14CUO5n5q5paiHfRFTa9HKgByxzidw2Bw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.5/pdfmake.min.js" integrity="sha512-rDbVu5s98lzXZsmJoMa0DjHNE+RwPJACogUCLyq3Xxm2kJO6qsQwjbE5NDk2DqmlKcxDirCnU1wAzVLe12IM3w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.5/vfs_fonts.js" integrity="sha512-cktKDgjEiIkPVHYbn8bh/FEyYxmt4JDJJjOCu5/FQAkW4bc911XtKYValiyzBiJigjVEvrIAyQFEbRJZyDA1wQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
<?=$this->endSection() ?>
|
||||
|
||||
Reference in New Issue
Block a user