mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'dev/presupuestos3' of https://git.imnavajas.es/jjimenez/safekat into dev/presupuestos3
This commit is contained in:
@ -482,6 +482,7 @@ $routes->resource('cosidotapablanda', ['namespace' => 'App\Controllers\Presupue
|
|||||||
$routes->group('serviciosacabados', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
|
$routes->group('serviciosacabados', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
|
||||||
$routes->post('datatable', 'PresupuestoAcabados::datatable', ['as' => 'dataTableOfPresupuestoAcabados']);
|
$routes->post('datatable', 'PresupuestoAcabados::datatable', ['as' => 'dataTableOfPresupuestoAcabados']);
|
||||||
$routes->post('datatable_editor', 'PresupuestoAcabados::datatable_editor', ['as' => 'editorOfPresupuestoAcabados']);
|
$routes->post('datatable_editor', 'PresupuestoAcabados::datatable_editor', ['as' => 'editorOfPresupuestoAcabados']);
|
||||||
|
$routes->get('delete/(:num)', 'PresupuestoAcabados::delete/$1', ['as' => 'deletePresupuestoAcabado']);
|
||||||
});
|
});
|
||||||
|
|
||||||
$routes->group('serviciosencuadernaciones', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
|
$routes->group('serviciosencuadernaciones', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
|
||||||
|
|||||||
@ -1,46 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Controllers\Clientes;
|
|
||||||
use App\Controllers\BaseController;
|
|
||||||
|
|
||||||
|
|
||||||
class Tarifacliente extends BaseController
|
|
||||||
{
|
|
||||||
function __construct()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
$uri = service('uri');
|
|
||||||
$data['page_name'] = "Tarifa Cliente";
|
|
||||||
$data['url'] = base_url() . $uri->getSegment(1) . '/' . $uri->getSegment(2);
|
|
||||||
echo view(getenv('theme.path').'main/demo_view', $data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function delete()
|
|
||||||
{
|
|
||||||
$uri = service('uri');
|
|
||||||
$data['page_name'] = "Tarifa Cliente";
|
|
||||||
$data['url'] = base_url() . $uri->getSegment(1) . '/' . $uri->getSegment(2);
|
|
||||||
echo view(getenv('theme.path').'main/demo_view', $data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function add()
|
|
||||||
{
|
|
||||||
$uri = service('uri');
|
|
||||||
$data['page_name'] = "Tarifa Cliente";
|
|
||||||
$data['url'] = base_url() . $uri->getSegment(1) . '/' . $uri->getSegment(2);
|
|
||||||
echo view(getenv('theme.path').'main/demo_view', $data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function edit()
|
|
||||||
{
|
|
||||||
$uri = service('uri');
|
|
||||||
$data['page_name'] = "Tarifa Cliente";
|
|
||||||
$data['url'] = base_url() . $uri->getSegment(1) . '/' . $uri->getSegment(2);
|
|
||||||
echo view(getenv('theme.path').'main/demo_view', $data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,232 +0,0 @@
|
|||||||
<?php namespace App\Controllers\Configuracion;
|
|
||||||
|
|
||||||
|
|
||||||
use App\Entities\Configuracion\FormasPagoEntity;
|
|
||||||
|
|
||||||
class Formaspago extends \App\Controllers\GoBaseController
|
|
||||||
{
|
|
||||||
|
|
||||||
use \CodeIgniter\API\ResponseTrait;
|
|
||||||
|
|
||||||
protected static $primaryModelName = 'App\Models\Configuracion\FormasPagoModel';
|
|
||||||
|
|
||||||
protected static $singularObjectNameCc = 'formaPago';
|
|
||||||
protected static $singularObjectName = 'Forma Pago';
|
|
||||||
protected static $pluralObjectName = 'Formas Pago';
|
|
||||||
protected static $controllerSlug = 'formaspago';
|
|
||||||
|
|
||||||
protected static $viewPath = 'themes/backend/vuexy/form/configuracion/formas-pago/';
|
|
||||||
|
|
||||||
protected $indexRoute = 'formaPagoList';
|
|
||||||
|
|
||||||
|
|
||||||
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
|
|
||||||
{
|
|
||||||
$this->viewData['pageTitle'] = lang('FormasPagoes.moduleTitle');
|
|
||||||
parent::initController($request, $response, $logger);
|
|
||||||
$this->viewData['usingSweetAlert'] = true;
|
|
||||||
|
|
||||||
if (session('errorMessage')) {
|
|
||||||
$this->session->setFlashData('sweet-error', session('errorMessage'));
|
|
||||||
}
|
|
||||||
if (session('successMessage')) {
|
|
||||||
$this->session->setFlashData('sweet-success', session('successMessage'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->viewData['usingClientSideDataTable'] = true;
|
|
||||||
|
|
||||||
$this->viewData['pageSubTitle'] = lang('Basic.global.ManageAllRecords', [lang('FormasPagoes.formaPago')]);
|
|
||||||
parent::index();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function add()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
$requestMethod = $this->request->getMethod();
|
|
||||||
|
|
||||||
if ($requestMethod === 'post') :
|
|
||||||
|
|
||||||
$nullIfEmpty = true; // !(phpversion() >= '8.1');
|
|
||||||
|
|
||||||
$postData = $this->request->getPost();
|
|
||||||
$sanitizedData = $this->sanitized($postData, $nullIfEmpty);
|
|
||||||
|
|
||||||
|
|
||||||
$noException = true;
|
|
||||||
if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :
|
|
||||||
|
|
||||||
|
|
||||||
if ($this->canValidate()) :
|
|
||||||
try {
|
|
||||||
$successfulResult = $this->model->skipValidation(true)->save($sanitizedData);
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
$noException = false;
|
|
||||||
$this->dealWithException($e);
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
$this->viewData['errorMessage'] = lang('Basic.global.formErr1', [lang('Basic.global.record')]);
|
|
||||||
$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', [lang('Basic.global.record')]) . '.';
|
|
||||||
|
|
||||||
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['formasPagoEntity'] = isset($sanitizedData) ? new FormasPagoEntity($sanitizedData) : new FormasPagoEntity();
|
|
||||||
|
|
||||||
$this->viewData['formAction'] = route_to('createFormaPago');
|
|
||||||
|
|
||||||
$this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('FormasPagoes.formaPago') . ' ' . lang('Basic.global.addNewSuffix');
|
|
||||||
|
|
||||||
|
|
||||||
return $this->displayForm(__METHOD__);
|
|
||||||
} // end function add()
|
|
||||||
|
|
||||||
public function edit($requestedId = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
if ($requestedId == null) :
|
|
||||||
return $this->redirect2listView();
|
|
||||||
endif;
|
|
||||||
$id = filter_var($requestedId, FILTER_SANITIZE_URL);
|
|
||||||
$formasPagoEntity = $this->model->find($id);
|
|
||||||
|
|
||||||
if ($formasPagoEntity == false) :
|
|
||||||
$message = lang('Basic.global.notFoundWithIdErr', [mb_strtolower(lang('FormasPagoes.formaPago')), $id]);
|
|
||||||
return $this->redirect2listView('sweet-error', $message);
|
|
||||||
endif;
|
|
||||||
|
|
||||||
$requestMethod = $this->request->getMethod();
|
|
||||||
|
|
||||||
if ($requestMethod === 'post') :
|
|
||||||
|
|
||||||
$nullIfEmpty = true; // !(phpversion() >= '8.1');
|
|
||||||
|
|
||||||
$postData = $this->request->getPost();
|
|
||||||
$sanitizedData = $this->sanitized($postData, $nullIfEmpty);
|
|
||||||
|
|
||||||
|
|
||||||
$noException = true;
|
|
||||||
if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :
|
|
||||||
|
|
||||||
|
|
||||||
if ($this->canValidate()) :
|
|
||||||
try {
|
|
||||||
$successfulResult = $this->model->skipValidation(true)->update($id, $sanitizedData);
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
$noException = false;
|
|
||||||
$this->dealWithException($e);
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
$this->viewData['warningMessage'] = lang('Basic.global.formErr1', [mb_strtolower(lang('FormasPagoes.formaPago'))]);
|
|
||||||
$this->session->setFlashdata('formErrors', $this->model->errors());
|
|
||||||
|
|
||||||
endif;
|
|
||||||
|
|
||||||
$formasPagoEntity->fill($sanitizedData);
|
|
||||||
|
|
||||||
$thenRedirect = false;
|
|
||||||
endif;
|
|
||||||
if ($noException && $successfulResult) :
|
|
||||||
$id = $formasPagoEntity->id ?? $id;
|
|
||||||
$message = lang('Basic.global.updateSuccess', [lang('Basic.global.record')]) . '.';
|
|
||||||
|
|
||||||
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['formasPagoEntity'] = $formasPagoEntity;
|
|
||||||
|
|
||||||
$this->viewData['formAction'] = route_to('updateFormaPago', $id);
|
|
||||||
|
|
||||||
$this->viewData['boxTitle'] = lang('Basic.global.edit2') . ' ' . lang('FormasPagoes.formaPago') . ' ' . lang('Basic.global.edit3');
|
|
||||||
|
|
||||||
|
|
||||||
return $this->displayForm(__METHOD__, $id);
|
|
||||||
} // end function edit(...)
|
|
||||||
|
|
||||||
|
|
||||||
public function allItemsSelect()
|
|
||||||
{
|
|
||||||
if ($this->request->isAJAX()) {
|
|
||||||
$onlyActiveOnes = true;
|
|
||||||
$reqVal = $this->request->getPost('val') ?? 'id';
|
|
||||||
$menu = $this->model->getAllForMenu($reqVal . ', nombre', 'nombre', $onlyActiveOnes, false);
|
|
||||||
$nonItem = new \stdClass;
|
|
||||||
$nonItem->id = '';
|
|
||||||
$nonItem->nombre = '- ' . 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 ?? 'nombre'];
|
|
||||||
$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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -376,7 +376,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
$response = $this->respond(Collection::datatable([], 0, 0, $errstr), 400, $errstr);
|
$response = $this->respond(Collection::datatable([], 0, 0, $errstr), 400, $errstr);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
$search = $reqData['search']['value'];
|
$search = $reqData['search']['value'];
|
||||||
}
|
}
|
||||||
$start = $reqData['start'] ?? 0;
|
$start = $reqData['start'] ?? 0;
|
||||||
@ -406,6 +405,9 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
if (isset($item->comentarios_tarifa) && strlen($item->comentarios_tarifa) > 100) :
|
if (isset($item->comentarios_tarifa) && strlen($item->comentarios_tarifa) > 100) :
|
||||||
$item->comentarios_tarifa = character_limiter($item->comentarios_tarifa, 100);
|
$item->comentarios_tarifa = character_limiter($item->comentarios_tarifa, 100);
|
||||||
endif;
|
endif;
|
||||||
|
if (isset($item->comentarios_produccion) && strlen($item->comentarios_produccion) > 100) :
|
||||||
|
$item->comentarios_produccion = character_limiter($item->comentarios_produccion, 100);
|
||||||
|
endif;
|
||||||
if (isset($item->tirada_alternativa_json_data) && strlen($item->tirada_alternativa_json_data) > 100) :
|
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);
|
$item->tirada_alternativa_json_data = character_limiter($item->tirada_alternativa_json_data, 100);
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@ -5,22 +5,12 @@ use App\Controllers\GoBaseResourceController;
|
|||||||
|
|
||||||
use App\Models\Collection;
|
use App\Models\Collection;
|
||||||
|
|
||||||
use App\Entities\Clientes\ClienteContactoEntity;
|
|
||||||
|
|
||||||
use App\Models\Clientes\ClienteModel;
|
|
||||||
|
|
||||||
use App\Models\Presupuestos\PresupuestoAcabadosModel;
|
use App\Models\Presupuestos\PresupuestoAcabadosModel;
|
||||||
use DataTables\Editor;
|
use DataTables\Editor;
|
||||||
use DataTables\Editor\Field;
|
use DataTables\Editor\Field;
|
||||||
use DataTables\Editor\Validate;
|
use DataTables\Editor\Validate;
|
||||||
use function App\Controllers\Clientes\csrf_hash;
|
|
||||||
use function App\Controllers\Clientes\csrf_token;
|
|
||||||
use function App\Controllers\Clientes\lang;
|
|
||||||
use function App\Controllers\Clientes\model;
|
|
||||||
use function App\Controllers\Clientes\redirect;
|
|
||||||
use function App\Controllers\Clientes\route_to;
|
|
||||||
use function App\Controllers\Clientes\view;
|
|
||||||
use const App\Controllers\Clientes\APPPATH;
|
|
||||||
|
|
||||||
class PresupuestoAcabados extends \App\Controllers\GoBaseResourceController
|
class PresupuestoAcabados extends \App\Controllers\GoBaseResourceController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,22 +5,10 @@ use App\Controllers\GoBaseResourceController;
|
|||||||
|
|
||||||
use App\Models\Collection;
|
use App\Models\Collection;
|
||||||
|
|
||||||
use App\Entities\Clientes\ClienteContactoEntity;
|
|
||||||
|
|
||||||
use App\Models\Clientes\ClienteModel;
|
|
||||||
|
|
||||||
use App\Models\Presupuestos\PresupuestoEncuadernacionesModel;
|
use App\Models\Presupuestos\PresupuestoEncuadernacionesModel;
|
||||||
use DataTables\Editor;
|
use DataTables\Editor;
|
||||||
use DataTables\Editor\Field;
|
use DataTables\Editor\Field;
|
||||||
use DataTables\Editor\Validate;
|
use DataTables\Editor\Validate;
|
||||||
use function App\Controllers\Clientes\csrf_hash;
|
|
||||||
use function App\Controllers\Clientes\csrf_token;
|
|
||||||
use function App\Controllers\Clientes\lang;
|
|
||||||
use function App\Controllers\Clientes\model;
|
|
||||||
use function App\Controllers\Clientes\redirect;
|
|
||||||
use function App\Controllers\Clientes\route_to;
|
|
||||||
use function App\Controllers\Clientes\view;
|
|
||||||
use const App\Controllers\Clientes\APPPATH;
|
|
||||||
|
|
||||||
class PresupuestoEncuadernaciones extends \App\Controllers\GoBaseResourceController
|
class PresupuestoEncuadernaciones extends \App\Controllers\GoBaseResourceController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,14 +13,6 @@ use App\Models\Presupuestos\PresupuestoManipuladosModel;
|
|||||||
use DataTables\Editor;
|
use DataTables\Editor;
|
||||||
use DataTables\Editor\Field;
|
use DataTables\Editor\Field;
|
||||||
use DataTables\Editor\Validate;
|
use DataTables\Editor\Validate;
|
||||||
use function App\Controllers\Clientes\csrf_hash;
|
|
||||||
use function App\Controllers\Clientes\csrf_token;
|
|
||||||
use function App\Controllers\Clientes\lang;
|
|
||||||
use function App\Controllers\Clientes\model;
|
|
||||||
use function App\Controllers\Clientes\redirect;
|
|
||||||
use function App\Controllers\Clientes\route_to;
|
|
||||||
use function App\Controllers\Clientes\view;
|
|
||||||
use const App\Controllers\Clientes\APPPATH;
|
|
||||||
|
|
||||||
class PresupuestoManipulados extends \App\Controllers\GoBaseResourceController
|
class PresupuestoManipulados extends \App\Controllers\GoBaseResourceController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,14 +7,6 @@ use App\Models\Presupuestos\PresupuestoPreimpresionesModel;
|
|||||||
use DataTables\Editor;
|
use DataTables\Editor;
|
||||||
use DataTables\Editor\Field;
|
use DataTables\Editor\Field;
|
||||||
use DataTables\Editor\Validate;
|
use DataTables\Editor\Validate;
|
||||||
use function App\Controllers\Clientes\csrf_hash;
|
|
||||||
use function App\Controllers\Clientes\csrf_token;
|
|
||||||
use function App\Controllers\Clientes\lang;
|
|
||||||
use function App\Controllers\Clientes\model;
|
|
||||||
use function App\Controllers\Clientes\redirect;
|
|
||||||
use function App\Controllers\Clientes\route_to;
|
|
||||||
use function App\Controllers\Clientes\view;
|
|
||||||
use const App\Controllers\Clientes\APPPATH;
|
|
||||||
|
|
||||||
class PresupuestoPreimpresiones extends \App\Controllers\GoBaseResourceController
|
class PresupuestoPreimpresiones extends \App\Controllers\GoBaseResourceController
|
||||||
{
|
{
|
||||||
|
|||||||
@ -215,19 +215,19 @@ class Tarifaencuadernacionlineas extends \App\Controllers\GoBaseResourceControll
|
|||||||
// Build our Editor instance and process the data coming from _POST
|
// Build our Editor instance and process the data coming from _POST
|
||||||
$response = Editor::inst($db, 'tarifa_encuadernacion_lineas')
|
$response = Editor::inst($db, 'tarifa_encuadernacion_lineas')
|
||||||
->fields(
|
->fields(
|
||||||
Field::inst('paginas_min')
|
Field::inst('paginas_libro_min')
|
||||||
->validator('Validate::numeric', array(
|
->validator('Validate::numeric', array(
|
||||||
'message' => lang('TarifaAcabadoLineas.validation.paginas_min.decimal'))
|
'message' => lang('TarifaAcabadoLineas.validation.paginas_libro_min.decimal'))
|
||||||
)
|
)
|
||||||
->validator('Validate::notEmpty', array(
|
->validator('Validate::notEmpty', array(
|
||||||
'message' => lang('TarifaAcabadoLineas.validation.paginas_min.required'))
|
'message' => lang('TarifaAcabadoLineas.validation.paginas_libro_min.required'))
|
||||||
),
|
),
|
||||||
Field::inst('paginas_max')
|
Field::inst('paginas_libro_max')
|
||||||
->validator('Validate::numeric', array(
|
->validator('Validate::numeric', array(
|
||||||
'message' => lang('TarifaAcabadoLineas.validation.paginas_max.decimal'))
|
'message' => lang('TarifaAcabadoLineas.validation.paginas_libro_max.decimal'))
|
||||||
)
|
)
|
||||||
->validator('Validate::notEmpty', array(
|
->validator('Validate::notEmpty', array(
|
||||||
'message' => lang('TarifaAcabadoLineas.validation.paginas_max.required'))
|
'message' => lang('TarifaAcabadoLineas.validation.paginas_libro_max.required'))
|
||||||
),
|
),
|
||||||
Field::inst('precio_min')
|
Field::inst('precio_min')
|
||||||
->validator('Validate::numeric', array(
|
->validator('Validate::numeric', array(
|
||||||
@ -264,8 +264,8 @@ class Tarifaencuadernacionlineas extends \App\Controllers\GoBaseResourceControll
|
|||||||
foreach ($data['data'] as $pkey => $values) {
|
foreach ($data['data'] as $pkey => $values) {
|
||||||
// Si no se quiere borrar...
|
// Si no se quiere borrar...
|
||||||
if ($data['data'][$pkey]['is_deleted'] != 1) {
|
if ($data['data'][$pkey]['is_deleted'] != 1) {
|
||||||
$process_data['paginas_min'] = $data['data'][$pkey]['paginas_min'];
|
$process_data['paginas_libro_min'] = $data['data'][$pkey]['paginas_libro_min'];
|
||||||
$process_data['paginas_max'] = $data['data'][$pkey]['paginas_max'];
|
$process_data['paginas_libro_max'] = $data['data'][$pkey]['paginas_libro_max'];
|
||||||
$response = $this->model->checkIntervals($process_data, $pkey, $data['data'][$pkey]['tirada_encuadernacion_id']);
|
$response = $this->model->checkIntervals($process_data, $pkey, $data['data'][$pkey]['tirada_encuadernacion_id']);
|
||||||
// No se pueden duplicar valores al crear o al editar
|
// No se pueden duplicar valores al crear o al editar
|
||||||
if (!empty($response)) {
|
if (!empty($response)) {
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace App\Entities\Configuracion;
|
|
||||||
|
|
||||||
use CodeIgniter\Entity;
|
|
||||||
|
|
||||||
class FormasPagoEntity extends \CodeIgniter\Entity\Entity
|
|
||||||
{
|
|
||||||
protected $attributes = [
|
|
||||||
"id" => null,
|
|
||||||
"nombre" => null,
|
|
||||||
"created_at" => null,
|
|
||||||
"updated_at" => null,
|
|
||||||
];
|
|
||||||
protected $casts = [];
|
|
||||||
}
|
|
||||||
@ -54,6 +54,7 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity
|
|||||||
"comentarios_safekat" => null,
|
"comentarios_safekat" => null,
|
||||||
"comentarios_pdf" => null,
|
"comentarios_pdf" => null,
|
||||||
"comentarios_tarifa" => null,
|
"comentarios_tarifa" => null,
|
||||||
|
"comentarios_produccion" => null,
|
||||||
"en_produccion" => false,
|
"en_produccion" => false,
|
||||||
"en_espera" => false,
|
"en_espera" => false,
|
||||||
"modo_comparador" => false,
|
"modo_comparador" => false,
|
||||||
|
|||||||
@ -8,10 +8,13 @@ class TarifaEncuadernacionLinea extends \CodeIgniter\Entity\Entity
|
|||||||
protected $attributes = [
|
protected $attributes = [
|
||||||
"id" => null,
|
"id" => null,
|
||||||
"tirada_encuadernacion_id" => 0,
|
"tirada_encuadernacion_id" => 0,
|
||||||
"paginas_min" => 0,
|
"paginas_libro_min" => 0,
|
||||||
"paginas_max" => 0,
|
"paginas_libro_max" => 0,
|
||||||
|
"dimensiones_id" => 0,
|
||||||
"precio_min" => 0,
|
"precio_min" => 0,
|
||||||
"precio_max" => 0,
|
"precio_max" => 0,
|
||||||
|
"tirada_min" => 0,
|
||||||
|
"tirada_max" => 0,
|
||||||
"margen" => 0,
|
"margen" => 0,
|
||||||
"user_created_id" => 0,
|
"user_created_id" => 0,
|
||||||
"user_updated_id" => 0,
|
"user_updated_id" => 0,
|
||||||
@ -21,10 +24,13 @@ class TarifaEncuadernacionLinea extends \CodeIgniter\Entity\Entity
|
|||||||
];
|
];
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
"tirada_encuadernacion_id" => "int",
|
"tirada_encuadernacion_id" => "int",
|
||||||
"paginas_min" => "float",
|
"dimensiones_id" => "int",
|
||||||
"paginas_max" => "float",
|
"paginas_libro_min" => "float",
|
||||||
|
"paginas_libro_max" => "float",
|
||||||
"precio_min" => "float",
|
"precio_min" => "float",
|
||||||
"precio_max" => "float",
|
"precio_max" => "float",
|
||||||
|
"tirada_min" => "float",
|
||||||
|
"tirada_max" => "float",
|
||||||
"margen" => "float",
|
"margen" => "float",
|
||||||
"user_created_id" => "int",
|
"user_created_id" => "int",
|
||||||
"user_updated_id" => "int",
|
"user_updated_id" => "int",
|
||||||
|
|||||||
@ -146,10 +146,12 @@ return [
|
|||||||
'servicioAcabado' => 'Servicio de acabado',
|
'servicioAcabado' => 'Servicio de acabado',
|
||||||
'servicioPreimpresion' => 'Servicio de preimpresión',
|
'servicioPreimpresion' => 'Servicio de preimpresión',
|
||||||
'servicioEncuadernado' => 'Servicio de encuadernado',
|
'servicioEncuadernado' => 'Servicio de encuadernado',
|
||||||
|
'servicioManipulado' => 'Servicio de manipulado',
|
||||||
'comentarios' => 'Comentarios',
|
'comentarios' => 'Comentarios',
|
||||||
'comentariosCliente' => 'Comentarios cliente',
|
'comentariosCliente' => 'Comentarios cliente',
|
||||||
'comentariosSafekat' => 'Comentarios Safekat',
|
'comentariosSafekat' => 'Comentarios Safekat',
|
||||||
'comentariosPresupuesto' => 'Comentarios el presupuesto',
|
'comentariosPresupuesto' => 'Comentarios Presupuesto',
|
||||||
|
'comentariosProduccion' => 'Comentarios Produccion',
|
||||||
'resumen' => 'Resumen del presupuesto',
|
'resumen' => 'Resumen del presupuesto',
|
||||||
'confirmar' => 'Confirmar presupuesto',
|
'confirmar' => 'Confirmar presupuesto',
|
||||||
|
|
||||||
@ -161,7 +163,7 @@ return [
|
|||||||
'validation' => [
|
'validation' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'requerido' => 'El campo {field} esta requerido.',
|
'requerido' => 'El campo {field} esta requerido.',
|
||||||
|
'max_length' => 'El campo {field} no puede exceder los {param} caracteres de longitud.',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,8 @@ return [
|
|||||||
'deleteLine' => 'el registro seleccionado',
|
'deleteLine' => 'el registro seleccionado',
|
||||||
'precioMax' => 'Precio Max',
|
'precioMax' => 'Precio Max',
|
||||||
'precioMin' => 'Precio Min',
|
'precioMin' => 'Precio Min',
|
||||||
|
'tiradaMax' => 'Tirada Max',
|
||||||
|
'tiradaMin' => 'Tirada Min',
|
||||||
'precioUnidad' => 'Precio Unidad',
|
'precioUnidad' => 'Precio Unidad',
|
||||||
'paginasMax' => 'Páginas Max',
|
'paginasMax' => 'Páginas Max',
|
||||||
'paginasMin' => 'Páginas Min',
|
'paginasMin' => 'Páginas Min',
|
||||||
@ -19,23 +21,26 @@ return [
|
|||||||
'error_paginas_range' => 'El campo Páginas Min debe ser menor que el campo Páginas Max',
|
'error_paginas_range' => 'El campo Páginas Min debe ser menor que el campo Páginas Max',
|
||||||
'precio_max' => [
|
'precio_max' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'required' => 'The {field} field is required.',
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'precio_min' => [
|
'precio_min' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'required' => 'The {field} field is required.',
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
'tirada_max' => [
|
||||||
'paginas_max' => [
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
],
|
||||||
|
'tirada_min' => [
|
||||||
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
],
|
||||||
|
'paginas_libro_max' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'required' => 'The {field} field is required.',
|
'required' => 'The {field} field is required.',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'paginas_min' => [
|
'paginas_libro_min' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'required' => 'The {field} field is required.',
|
'required' => 'The {field} field is required.',
|
||||||
|
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace App\Models\Configuracion;
|
|
||||||
|
|
||||||
class FormasPagoModel extends \App\Models\GoBaseModel
|
|
||||||
{
|
|
||||||
protected $table = "lg_formas_pago";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether primary key uses auto increment.
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
protected $useAutoIncrement = true;
|
|
||||||
|
|
||||||
protected $allowedFields = ["nombre"];
|
|
||||||
protected $returnType = "App\Entities\Configuracion\FormasPagoEntity";
|
|
||||||
|
|
||||||
public static $labelField = "nombre";
|
|
||||||
|
|
||||||
protected $validationRules = [
|
|
||||||
"nombre" => [
|
|
||||||
"label" => "FormasPagoes.nombre",
|
|
||||||
"rules" => "trim|required|max_length[255]",
|
|
||||||
],
|
|
||||||
];
|
|
||||||
|
|
||||||
protected $validationMessages = [
|
|
||||||
"nombre" => [
|
|
||||||
"max_length" => "FormasPagoes.validation.nombre.max_length",
|
|
||||||
"required" => "FormasPagoes.validation.nombre.required",
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -75,6 +75,7 @@ class PresupuestoModel extends \App\Models\GoBaseModel
|
|||||||
"comentarios_safekat",
|
"comentarios_safekat",
|
||||||
"comentarios_pdf",
|
"comentarios_pdf",
|
||||||
"comentarios_tarifa",
|
"comentarios_tarifa",
|
||||||
|
"comentarios_produccion",
|
||||||
"en_produccion",
|
"en_produccion",
|
||||||
"en_espera",
|
"en_espera",
|
||||||
"modo_comparador",
|
"modo_comparador",
|
||||||
@ -250,6 +251,10 @@ class PresupuestoModel extends \App\Models\GoBaseModel
|
|||||||
"label" => "Presupuestos.comentariosTarifa",
|
"label" => "Presupuestos.comentariosTarifa",
|
||||||
"rules" => "trim|required|max_length[16313]",
|
"rules" => "trim|required|max_length[16313]",
|
||||||
],
|
],
|
||||||
|
"comentarios_produccion" => [
|
||||||
|
"label" => "Presupuestos.comentariosProduccion",
|
||||||
|
"rules" => "trim|required|max_length[16313]",
|
||||||
|
],
|
||||||
"comparador_json_data" => [
|
"comparador_json_data" => [
|
||||||
"label" => "Presupuestos.comparadorJsonData",
|
"label" => "Presupuestos.comparadorJsonData",
|
||||||
"rules" => "trim|max_length[16313]",
|
"rules" => "trim|max_length[16313]",
|
||||||
@ -672,20 +677,24 @@ class PresupuestoModel extends \App\Models\GoBaseModel
|
|||||||
"max_length" => "Presupuestos.validation.coleccion.max_length",
|
"max_length" => "Presupuestos.validation.coleccion.max_length",
|
||||||
],
|
],
|
||||||
"comentarios_cliente" => [
|
"comentarios_cliente" => [
|
||||||
"max_length" => "Presupuestos.validation.comentarios_cliente.max_length",
|
"max_length" => "Presupuestos.validation.max_length",
|
||||||
"required" => "Presupuestos.validation.comentarios_cliente.required",
|
"required" => "Presupuestos.validation.required",
|
||||||
],
|
],
|
||||||
"comentarios_pdf" => [
|
"comentarios_pdf" => [
|
||||||
"max_length" => "Presupuestos.validation.comentarios_pdf.max_length",
|
"max_length" => "Presupuestos.validation.max_length",
|
||||||
"required" => "Presupuestos.validation.comentarios_pdf.required",
|
"required" => "Presupuestos.validation.required",
|
||||||
],
|
],
|
||||||
"comentarios_safekat" => [
|
"comentarios_safekat" => [
|
||||||
"max_length" => "Presupuestos.validation.comentarios_safekat.max_length",
|
"max_length" => "Presupuestos.validation.max_length",
|
||||||
"required" => "Presupuestos.validation.comentarios_safekat.required",
|
"required" => "Presupuestos.validation.required",
|
||||||
],
|
],
|
||||||
"comentarios_tarifa" => [
|
"comentarios_tarifa" => [
|
||||||
"max_length" => "Presupuestos.validation.comentarios_tarifa.max_length",
|
"max_length" => "Presupuestos.validation.max_length",
|
||||||
"required" => "Presupuestos.validation.comentarios_tarifa.required",
|
"required" => "Presupuestos.validation.required",
|
||||||
|
],
|
||||||
|
"comentarios_produccion" => [
|
||||||
|
"max_length" => "Presupuestos.validation.max_length",
|
||||||
|
"required" => "Presupuestos.validation.required",
|
||||||
],
|
],
|
||||||
"comparador_json_data" => [
|
"comparador_json_data" => [
|
||||||
"max_length" => "Presupuestos.validation.comparador_json_data.max_length",
|
"max_length" => "Presupuestos.validation.comparador_json_data.max_length",
|
||||||
|
|||||||
@ -13,18 +13,21 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
protected $useAutoIncrement = true;
|
protected $useAutoIncrement = true;
|
||||||
|
|
||||||
const SORTABLE = [
|
const SORTABLE = [
|
||||||
0 => "t1.paginas_min",
|
0 => "t1.paginas_libro_min",
|
||||||
1 => "t1.paginas_max",
|
1 => "t1.paginas_libro_max",
|
||||||
2 => "t1.precio_min",
|
2 => "t1.precio_min",
|
||||||
3 => "t1.precio_max",
|
3 => "t1.precio_max",
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $allowedFields = [
|
protected $allowedFields = [
|
||||||
"tirada_encuadernacion_id",
|
"tirada_encuadernacion_id",
|
||||||
"paginas_min",
|
"paginas_libro_min",
|
||||||
"paginas_max",
|
"paginas_libro_max",
|
||||||
|
"dimensiones_id",
|
||||||
"precio_min",
|
"precio_min",
|
||||||
"precio_max",
|
"precio_max",
|
||||||
|
"tirada_min",
|
||||||
|
"tirada_max",
|
||||||
"user_created_id",
|
"user_created_id",
|
||||||
"is_deleted",
|
"is_deleted",
|
||||||
|
|
||||||
@ -49,11 +52,19 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
"label" => "TarifaEncuadernacionLineas.precioMin",
|
"label" => "TarifaEncuadernacionLineas.precioMin",
|
||||||
"rules" => "required|decimal",
|
"rules" => "required|decimal",
|
||||||
],
|
],
|
||||||
"paginas_max" => [
|
"tirada_max" => [
|
||||||
|
"label" => "TarifaEncuadernacionLineas.tiradaMax",
|
||||||
|
"rules" => "required|decimal",
|
||||||
|
],
|
||||||
|
"tirada_min" => [
|
||||||
|
"label" => "TarifaEncuadernacionLineas.tiradaMin",
|
||||||
|
"rules" => "required|decimal",
|
||||||
|
],
|
||||||
|
"paginas_libro_max" => [
|
||||||
"label" => "TarifaEncuadernacionLineas.paginasMax",
|
"label" => "TarifaEncuadernacionLineas.paginasMax",
|
||||||
"rules" => "required|decimal",
|
"rules" => "required|decimal",
|
||||||
],
|
],
|
||||||
"paginas_min" => [
|
"paginas_libro_min" => [
|
||||||
"label" => "TarifaEncuadernacionLineas.paginasMin",
|
"label" => "TarifaEncuadernacionLineas.paginasMin",
|
||||||
"rules" => "required|decimal",
|
"rules" => "required|decimal",
|
||||||
],
|
],
|
||||||
@ -72,13 +83,21 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
"decimal" => "TarifaEncuadernacionLineas.validation.precio_min.decimal",
|
"decimal" => "TarifaEncuadernacionLineas.validation.precio_min.decimal",
|
||||||
"required" => "TarifaEncuadernacionLineas.validation.precio_min.required",
|
"required" => "TarifaEncuadernacionLineas.validation.precio_min.required",
|
||||||
],
|
],
|
||||||
"paginas_max" => [
|
"tirada_max" => [
|
||||||
"decimal" => "TarifaEncuadernacionLineas.validation.paginas_max.decimal",
|
"decimal" => "TarifaEncuadernacionLineas.validation.tirada_max.decimal",
|
||||||
"required" => "TarifaEncuadernacionLineas.validation.paginas_max.required",
|
"required" => "TarifaEncuadernacionLineas.validation.tirada_max.required",
|
||||||
],
|
],
|
||||||
"paginas_min" => [
|
"tirada_min" => [
|
||||||
"decimal" => "TarifaEncuadernacionLineas.validation.paginas_min.decimal",
|
"decimal" => "TarifaEncuadernacionLineas.validation.tirada_min.decimal",
|
||||||
"required" => "TarifaEncuadernacionLineas.validation.paginas_min.required",
|
"required" => "TarifaEncuadernacionLineas.validation.tirada_min.required",
|
||||||
|
],
|
||||||
|
"paginas_libro_max" => [
|
||||||
|
"decimal" => "TarifaEncuadernacionLineas.validation.paginas_libro_max.decimal",
|
||||||
|
"required" => "TarifaEncuadernacionLineas.validation.paginas_libro_max.required",
|
||||||
|
],
|
||||||
|
"paginas_libro_min" => [
|
||||||
|
"decimal" => "TarifaEncuadernacionLineas.validation.paginas_libro_min.decimal",
|
||||||
|
"required" => "TarifaEncuadernacionLineas.validation.paginas_libro_min.required",
|
||||||
],
|
],
|
||||||
"margen" => [
|
"margen" => [
|
||||||
"decimal" => "TarifaEncuadernacionLineas.validation.margen.decimal",
|
"decimal" => "TarifaEncuadernacionLineas.validation.margen.decimal",
|
||||||
@ -98,7 +117,7 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
$builder = $this->db
|
$builder = $this->db
|
||||||
->table($this->table . " t1")
|
->table($this->table . " t1")
|
||||||
->select(
|
->select(
|
||||||
"t1.id AS id, t1.tirada_encuadernacion_id AS tirada_encuadernacion_id, t1.paginas_min AS paginas_min, t1.paginas_max AS paginas_max, t1.precio_min AS precio_min, t1.precio_max AS precio_max, t1.margen AS margen, t2.id AS tarifa_encuadernacion"
|
"t1.id AS id, t1.tirada_encuadernacion_id AS tirada_encuadernacion_id, t1.paginas_libro_min AS paginas_libro_min, t1.paginas_libro_max AS paginas_libro_max, t1.precio_min AS precio_min, t1.precio_max AS precio_max, t1.tirada_min AS tirada_min, t1.tirada_max AS tirada_max, t1.margen AS margen, t2.id AS tarifa_encuadernacion"
|
||||||
);
|
);
|
||||||
//JJO
|
//JJO
|
||||||
$builder->where('tirada_encuadernacion_id', $tirada_encuadernacion_id);
|
$builder->where('tirada_encuadernacion_id', $tirada_encuadernacion_id);
|
||||||
@ -113,16 +132,12 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
->groupStart()
|
->groupStart()
|
||||||
->like("t1.id", $search)
|
->like("t1.id", $search)
|
||||||
->orLike("t1.tirada_encuadernacion_id", $search)
|
->orLike("t1.tirada_encuadernacion_id", $search)
|
||||||
->orLike("t1.paginas_min", $search)
|
->orLike("t1.paginas_libro_min", $search)
|
||||||
->orLike("t1.paginas_max", $search)
|
->orLike("t1.paginas_libro_max", $search)
|
||||||
->orLike("t1.precio_min", $search)
|
|
||||||
->orLike("t1.precio_max", $search)
|
|
||||||
->orLike("t1.id", $search)
|
|
||||||
->orLike("t1.tirada_encuadernacion_id", $search)
|
|
||||||
->orLike("t1.paginas_min", $search)
|
|
||||||
->orLike("t1.paginas_max", $search)
|
|
||||||
->orLike("t1.precio_min", $search)
|
->orLike("t1.precio_min", $search)
|
||||||
->orLike("t1.precio_max", $search)
|
->orLike("t1.precio_max", $search)
|
||||||
|
->orLike("t1.tirada_min", $search)
|
||||||
|
->orLike("t1.tirada_max", $search)
|
||||||
->groupEnd();
|
->groupEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,13 +145,13 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
|
|
||||||
helper('general');
|
helper('general');
|
||||||
|
|
||||||
if(floatval($data["paginas_min"])>= floatval($data["paginas_max"])){
|
if(floatval($data["paginas_libro_min"])>= floatval($data["paginas_libro_max"])){
|
||||||
return lang('TarifaEncuadernacionLineas.validation.error_paginas_range');
|
return lang('TarifaEncuadernacionLineas.validation.error_paginas_range');
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = $this->db
|
$rows = $this->db
|
||||||
->table($this->table)
|
->table($this->table)
|
||||||
->select("id, paginas_min, paginas_max")
|
->select("id, paginas_libro_min, paginas_libro_max")
|
||||||
->where("is_deleted", 0)
|
->where("is_deleted", 0)
|
||||||
->where("tirada_encuadernacion_id", $tirada_encuadernacion_id)
|
->where("tirada_encuadernacion_id", $tirada_encuadernacion_id)
|
||||||
->get()->getResultObject();
|
->get()->getResultObject();
|
||||||
@ -148,8 +163,8 @@ class TarifaEncuadernacionLineaModel extends \App\Models\GoBaseModel
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(check_overlap(floatval($data["paginas_min"]), floatval($data["paginas_max"]),
|
if(check_overlap(floatval($data["paginas_libro_min"]), floatval($data["paginas_libro_max"]),
|
||||||
$row->paginas_min, $row->paginas_max)){
|
$row->paginas_libro_min, $row->paginas_libro_max)){
|
||||||
return lang('TarifaEncuadernacionLineas.validation.error_paginas_overlap');
|
return lang('TarifaEncuadernacionLineas.validation.error_paginas_overlap');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
<div class="row">
|
|
||||||
<div class="col-md-12 col-lg-12 px-4">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="nombre" class="form-label">
|
|
||||||
<?=lang('FormasPagoes.nombre') ?>*
|
|
||||||
</label>
|
|
||||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $formasPagoEntity->nombre) ?>">
|
|
||||||
</div><!--//.mb-3 -->
|
|
||||||
|
|
||||||
</div><!--//.col -->
|
|
||||||
|
|
||||||
</div><!-- //.row -->
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
<?= $this->include("themes_commonPartialsBs/select2bs5") ?>
|
|
||||||
<?= $this->include("themes_commonPartialsBs/sweetalert") ?>
|
|
||||||
<?= $this->extend('themes/backend/vuexy/main/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="formaPagoForm" 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/configuracion/formas-pago/_formaPagoFormItems") ?>
|
|
||||||
</div><!-- /.card-body -->
|
|
||||||
<div class="card-footer">
|
|
||||||
<?= anchor(route_to("formaPagoList2"), 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() ?>
|
|
||||||
@ -1,141 +0,0 @@
|
|||||||
<?=$this->include('themes_commonPartialsBs/datatables') ?>
|
|
||||||
<?=$this->include('themes_commonPartialsBs/sweetalert') ?>
|
|
||||||
<?=$this->extend('themes'.config('Basics')->theme['name'].'/AdminLayout/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('FormasPagoes.formaPagoList') ?></h3>
|
|
||||||
</div><!--//.card-header -->
|
|
||||||
<div class="card-body">
|
|
||||||
<?= view('themes_commonPartialsBs/_alertBoxes'); ?>
|
|
||||||
|
|
||||||
<table id="tableOfFormaspago" class="table table-striped table-hover using-exportable-data-table" style="width: 100%;">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
|
|
||||||
<th><?= lang('FormasPagoes.id') ?></th>
|
|
||||||
<th><?= lang('FormasPagoes.nombre') ?></th>
|
|
||||||
<th><?= lang('FormasPagoes.createdAt') ?></th>
|
|
||||||
<th><?= lang('FormasPagoes.updatedAt') ?></th>
|
|
||||||
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach ($formaPagoList as $item ) : ?>
|
|
||||||
<tr>
|
|
||||||
<td class="align-middle text-center text-nowrap">
|
|
||||||
<?=anchor(route_to('editFormaPago', $item->id), lang('Basic.global.edit'), ['class'=>'btn btn-sm btn-warning btn-edit me-1', 'data-id'=>$item->id,]); ?>
|
|
||||||
<?=anchor('#confirm2delete', lang('Basic.global.Delete'), ['class'=>'btn btn-sm btn-danger btn-delete ms-1', 'data-href'=>route_to('deleteFormaPago', $item->id)]); ?>
|
|
||||||
</td>
|
|
||||||
<td class="align-middle text-center">
|
|
||||||
<?=$item->id ?>
|
|
||||||
</td>
|
|
||||||
<td class="align-middle">
|
|
||||||
<?= empty($item->nombre) || strlen($item->nombre) < 51 ? esc($item->nombre) : character_limiter(esc($item->nombre), 50) ?>
|
|
||||||
</td>
|
|
||||||
<td class="align-middle text-nowrap">
|
|
||||||
<?= empty($item->created_at) ? '' : date('mm/dd/YYYY H:i', strtotime($item->created_at)) ?>
|
|
||||||
</td>
|
|
||||||
<td class="align-middle text-nowrap">
|
|
||||||
<?= empty($item->updated_at) ? '' : date('mm/dd/YYYY H:i', strtotime($item->updated_at)) ?>
|
|
||||||
</td>
|
|
||||||
<td class="align-middle text-center text-nowrap">
|
|
||||||
<?=anchor(route_to('editFormaPago', $item->id), lang('Basic.global.edit'), ['class'=>'btn btn-sm btn-warning btn-edit me-1', 'data-id'=>$item->id,]); ?>
|
|
||||||
<?=anchor('#confirm2delete', lang('Basic.global.Delete'), ['class'=>'btn btn-sm btn-danger btn-delete ms-1', 'data-href'=>route_to('deleteFormaPago', $item->id)]); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!--//.card-body -->
|
|
||||||
<div class="card-footer">
|
|
||||||
<?=anchor(route_to('newFormaPago'), lang('Basic.global.addNew').' '.lang('FormasPagoes.formaPago'), ['class'=>'btn btn-primary float-end']); ?>
|
|
||||||
</div><!--//.card-footer -->
|
|
||||||
</div><!--//.card -->
|
|
||||||
</div><!--//.col -->
|
|
||||||
</div><!--//.row -->
|
|
||||||
|
|
||||||
<?=$this->endSection() ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?=$this->section('additionalInlineJs') ?>
|
|
||||||
|
|
||||||
const lastColNr2 = $(".using-exportable-data-table").find("tr:first th").length - 1;
|
|
||||||
theTable = $('.using-exportable-data-table').DataTable({
|
|
||||||
"responsive": true,
|
|
||||||
"paging": true,
|
|
||||||
"lengthMenu": [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ],
|
|
||||||
"pageLength": 10,
|
|
||||||
"lengthChange": true,
|
|
||||||
"searching": true,
|
|
||||||
"ordering": true,
|
|
||||||
"info": true,
|
|
||||||
"dom": 'lfrtipB', // 'lfBrtip', // you can try different layout combinations by uncommenting one or the other
|
|
||||||
// "dom": '<"top"lf><"clear">rt<"bottom"ipB><"clear">', // remember to comment this line if you uncomment the above
|
|
||||||
"buttons": [
|
|
||||||
'copy', 'csv', 'excel', 'print', {
|
|
||||||
extend: 'pdfHtml5',
|
|
||||||
orientation: 'landscape',
|
|
||||||
pageSize: 'A4'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"autoWidth": true,
|
|
||||||
"scrollX": true,
|
|
||||||
"stateSave": true,
|
|
||||||
"language": {
|
|
||||||
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
|
|
||||||
},
|
|
||||||
"columnDefs": [
|
|
||||||
{
|
|
||||||
orderable: false,
|
|
||||||
searchable: false,
|
|
||||||
targets: [0,lastColNr2]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on('click', '.btn-delete', function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
const dataHref = $(this).data('href');
|
|
||||||
Swal.fire({
|
|
||||||
title: "<?= lang('Basic.global.sweet.sureToDeleteTitle', [lang('FormasPagoes.forma pago')]) ?>",
|
|
||||||
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) => {
|
|
||||||
if (result.value) {
|
|
||||||
window.location.href = `${dataHref}`;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
<?=$this->endSection() ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?=$this->section('css') ?>
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.3/css/buttons.bootstrap5.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.bootstrap5.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() ?>
|
|
||||||
|
|
||||||
@ -23,6 +23,12 @@
|
|||||||
aria-controls="comentarios-cliente"
|
aria-controls="comentarios-cliente"
|
||||||
aria-selected="true">
|
aria-selected="true">
|
||||||
<?= lang("Presupuestos.comentariosCliente") ?>
|
<?= lang("Presupuestos.comentariosCliente") ?>
|
||||||
|
<span
|
||||||
|
id="mostrar_comentarios_cliente"
|
||||||
|
style="display: none"
|
||||||
|
class="badge rounded-pill badge-center h-px-20 w-px-20 bg-warning ms-1">
|
||||||
|
!
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
@ -35,6 +41,12 @@
|
|||||||
aria-controls="comentarios-safekat"
|
aria-controls="comentarios-safekat"
|
||||||
aria-selected="false">
|
aria-selected="false">
|
||||||
<?= lang("Presupuestos.comentariosSafekat") ?>
|
<?= lang("Presupuestos.comentariosSafekat") ?>
|
||||||
|
<span
|
||||||
|
id="mostrar_comentarios_safekat"
|
||||||
|
style="display: none"
|
||||||
|
class="badge rounded-pill badge-center h-px-20 w-px-20 bg-warning ms-1">
|
||||||
|
!
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
@ -47,6 +59,30 @@
|
|||||||
aria-controls="comentarios-presupuesto"
|
aria-controls="comentarios-presupuesto"
|
||||||
aria-selected="false">
|
aria-selected="false">
|
||||||
<?= lang("Presupuestos.comentariosPresupuesto") ?>
|
<?= lang("Presupuestos.comentariosPresupuesto") ?>
|
||||||
|
<span
|
||||||
|
id="mostrar_comentarios_pdf"
|
||||||
|
style="display: none"
|
||||||
|
class="badge rounded-pill badge-center h-px-20 w-px-20 bg-warning ms-1">
|
||||||
|
!
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="nav-link"
|
||||||
|
role="tab"
|
||||||
|
data-bs-toggle="tab"
|
||||||
|
data-bs-target="#comentarios-produccion"
|
||||||
|
aria-controls="comentarios-produccion"
|
||||||
|
aria-selected="false">
|
||||||
|
<?= lang("Presupuestos.comentariosProduccion") ?>
|
||||||
|
<span
|
||||||
|
id="mostrar_comentarios_produccion"
|
||||||
|
style="display: none"
|
||||||
|
class="badge rounded-pill badge-center h-px-20 w-px-20 bg-warning ms-1">
|
||||||
|
!
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -99,7 +135,21 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-pane fade" id="comentarios-produccion" role="tabpanel">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 col-lg-12 px-4">
|
||||||
|
<div class="mb-3">
|
||||||
|
<textarea
|
||||||
|
rows="3"
|
||||||
|
id="comentariosProduccion"
|
||||||
|
name="comentarios_produccion"
|
||||||
|
required
|
||||||
|
style="height: 10em;"
|
||||||
|
class="form-control"><?=old('comentarios_pdf', $presupuestoEntity->comentarios_produccion) ?></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- //.accordion-body -->
|
</div> <!-- //.accordion-body -->
|
||||||
@ -111,6 +161,14 @@
|
|||||||
<!------------------------------------------------------->
|
<!------------------------------------------------------->
|
||||||
<?= $this->section("additionalInlineJs") ?>
|
<?= $this->section("additionalInlineJs") ?>
|
||||||
|
|
||||||
|
$("textarea[name*='comentarios_']").each(function(){
|
||||||
|
if (!$.trim($(this).val())) {
|
||||||
|
// textarea is empty or contains only white-space
|
||||||
|
$("#mostrar_" + $(this).attr('name')).hide();
|
||||||
|
}else{
|
||||||
|
$("#mostrar_" + $(this).attr('name')).show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
|||||||
@ -228,7 +228,7 @@
|
|||||||
const row = $(this).closest('tr');
|
const row = $(this).closest('tr');
|
||||||
if ($.isNumeric(dataId)) {
|
if ($.isNumeric(dataId)) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `/presupuestos/presupuestoacabados/delete/${dataId}`,
|
url: `/serviciosacabados/delete/${dataId}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
}).done((data, textStatus, jqXHR) => {
|
}).done((data, textStatus, jqXHR) => {
|
||||||
$('#confirm2delete').modal('toggle');
|
$('#confirm2delete').modal('toggle');
|
||||||
|
|||||||
@ -172,11 +172,11 @@
|
|||||||
table : "#tableOfTarifaencuadernacionlineas",
|
table : "#tableOfTarifaencuadernacionlineas",
|
||||||
idSrc: 'id',
|
idSrc: 'id',
|
||||||
fields: [ {
|
fields: [ {
|
||||||
name: "paginas_min"
|
name: "paginas_libro_min"
|
||||||
}, {
|
}, {
|
||||||
name: "precio_max"
|
name: "precio_max"
|
||||||
}, {
|
}, {
|
||||||
name: "paginas_max"
|
name: "paginas_libro_max"
|
||||||
}, {
|
}, {
|
||||||
name: "precio_min"
|
name: "precio_min"
|
||||||
}, {
|
}, {
|
||||||
@ -243,9 +243,9 @@
|
|||||||
async: true,
|
async: true,
|
||||||
}),
|
}),
|
||||||
columns: [
|
columns: [
|
||||||
{ 'data': 'paginas_min' },
|
{ 'data': 'paginas_libro_min' },
|
||||||
{ 'data': 'precio_max' },
|
{ 'data': 'precio_max' },
|
||||||
{ 'data': 'paginas_max' },
|
{ 'data': 'paginas_libro_max' },
|
||||||
{ 'data': 'precio_min' },
|
{ 'data': 'precio_min' },
|
||||||
{ 'data': 'margen' },
|
{ 'data': 'margen' },
|
||||||
{
|
{
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
/**
|
/**
|
||||||
* MENU CLIENTES
|
* MENU CLIENTES
|
||||||
*/
|
*/
|
||||||
if (allowMenuSection($menus, ['Cliente', 'Tarifacliente'], 'index')):
|
if (allowMenuSection($menus, ['Cliente'], 'index')):
|
||||||
?>
|
?>
|
||||||
<!-- Clientes -->
|
<!-- Clientes -->
|
||||||
<li class="menu-item">
|
<li class="menu-item">
|
||||||
@ -47,15 +47,6 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifacliente')) > 0): ?>
|
|
||||||
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="<?= site_url("clientes/tarifacliente") ?>" class="menu-link">
|
|
||||||
<div data-i18n="<?= lang("App.menu_tarifacliente") ?>"><?= lang("App.menu_tarifacliente") ?></div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
/**
|
/**
|
||||||
* MENU CLIENTES
|
* MENU CLIENTES
|
||||||
*/
|
*/
|
||||||
if (allowMenuSection($menus, ['Cliente', 'Tarifacliente'], 'index')):
|
if (allowMenuSection($menus, ['Cliente'], 'index')):
|
||||||
?>
|
?>
|
||||||
<!-- Clientes -->
|
<!-- Clientes -->
|
||||||
<li class="menu-item">
|
<li class="menu-item">
|
||||||
@ -47,15 +47,6 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifacliente')) > 0): ?>
|
|
||||||
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="<?= site_url("clientes/tarifacliente") ?>" class="menu-link">
|
|
||||||
<div data-i18n="<?= lang("App.menu_tarifacliente") ?>"><?= lang("App.menu_tarifacliente") ?></div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
/**
|
/**
|
||||||
* MENU CLIENTES
|
* MENU CLIENTES
|
||||||
*/
|
*/
|
||||||
if (allowMenuSection($menus, ['Cliente', 'Tarifacliente'], 'index')):
|
if (allowMenuSection($menus, ['Cliente'], 'index')):
|
||||||
?>
|
?>
|
||||||
<!-- Clientes -->
|
<!-- Clientes -->
|
||||||
<li class="menu-item">
|
<li class="menu-item">
|
||||||
@ -47,15 +47,6 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Cliente')) > 0): ?>
|
|
||||||
<?php if (count(getArrayItem($temp, 'methods', 'nuevo', true)) > 0): ?>
|
|
||||||
<li class="menu-item">
|
|
||||||
<a href="<?= site_url("clientes/nuevo") ?>" class="menu-link">
|
|
||||||
<div data-i18n="<?= lang("App.menu_clientes_nuevo") ?>"><?= lang("App.menu_clientes_nuevo") ?></div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user