mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
todo ok a falta de los servicios por defecto
This commit is contained in:
@ -47,7 +47,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
|
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
|
|
||||||
//$this->viewData['pageTitle'] = lang('Presupuestos.moduleTitleCosidoTB');
|
|
||||||
$this->viewData['usingSweetAlert'] = true;
|
$this->viewData['usingSweetAlert'] = true;
|
||||||
|
|
||||||
// Se indica que este controlador trabaja con soft_delete
|
// Se indica que este controlador trabaja con soft_delete
|
||||||
@ -57,14 +56,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
|
|
||||||
$this->viewData = ['usingServerSideDataTable' => true]; // JJO
|
$this->viewData = ['usingServerSideDataTable' => true]; // JJO
|
||||||
|
|
||||||
$this->viewData = [
|
|
||||||
'currentModule' => static::$controllerSlug,
|
|
||||||
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Presupuestos.presupuesto')]),
|
|
||||||
'presupuestoEntity' => new PresupuestoEntity(),
|
|
||||||
'usingServerSideDataTable' => true,
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
$this->model = new PresupuestoModel();
|
$this->model = new PresupuestoModel();
|
||||||
}
|
}
|
||||||
@ -73,20 +64,24 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
|
|
||||||
public function list($tipo_impresion_id = 4)
|
public function list($tipo_impresion_id = 4)
|
||||||
{
|
{
|
||||||
|
$viewData = [
|
||||||
|
'currentModule' => static::$controllerSlug,
|
||||||
// Se pasa a la vista el tipo de presupuesto
|
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Presupuestos.presupuesto')]),
|
||||||
$viewData['tipo_impresion_id'] = $tipo_impresion_id;
|
'presupuestoEntity' => new PresupuestoEntity(),
|
||||||
|
'usingServerSideDataTable' => true,
|
||||||
|
'tipo_impresion_id' => $tipo_impresion_id
|
||||||
|
];
|
||||||
|
|
||||||
$viewData = array_merge($viewData, $this->getStringsFromTipoImpresion($tipo_impresion_id));
|
$viewData = array_merge($viewData, $this->getStringsFromTipoImpresion($tipo_impresion_id));
|
||||||
|
|
||||||
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
||||||
|
|
||||||
|
|
||||||
return view(static::$viewPath . 'viewCosidotapablandaList', $viewData);
|
return view(static::$viewPath . 'viewCosidotapablandaList', $viewData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function add($tipo_impresion_id = 4)
|
public function add($tipo_impresion_id = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
// JJO
|
// JJO
|
||||||
@ -143,8 +138,9 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
|
|
||||||
endif; // ($requestMethod === 'post')
|
endif; // ($requestMethod === 'post')
|
||||||
|
|
||||||
$this->viewData['tipo_impresion_id'] = 4; // Cosido tapa blanda JJO
|
$this->viewData['tipo_impresion_id'] = $tipo_impresion_id; // Cosido tapa blanda JJO
|
||||||
$this->viewData['presupuestoEntity'] = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
|
$presupuestoEntity = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
|
||||||
|
$this->viewData['presupuestoEntity'] = $presupuestoEntity;
|
||||||
$this->viewData['isCosido'] = (new TipoPresupuestoModel())->get_isCosido($this->viewData['tipo_impresion_id']);
|
$this->viewData['isCosido'] = (new TipoPresupuestoModel())->get_isCosido($this->viewData['tipo_impresion_id']);
|
||||||
|
|
||||||
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null);
|
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null);
|
||||||
@ -356,7 +352,9 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
'fajaColor' => 16,
|
'fajaColor' => 16,
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->viewData['tipo_impresion_id'] = 4; // Cosido tapa blanda JJO
|
$this->viewData['tipo_impresion_id'] = $presupuestoEntity->tipo_impresion_id; // Cosido tapa blanda JJO
|
||||||
|
|
||||||
|
$this->viewData = array_merge($this->viewData, $this->getStringsFromTipoImpresion($presupuestoEntity->tipo_impresion_id));
|
||||||
|
|
||||||
$this->viewData['formAction'] = route_to('updateCosidotapablanda', $id);
|
$this->viewData['formAction'] = route_to('updateCosidotapablanda', $id);
|
||||||
|
|
||||||
@ -397,13 +395,13 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
$dir3 = $reqData['order']['0']['dir'] ?? 'asc';
|
$dir3 = $reqData['order']['0']['dir'] ?? 'asc';
|
||||||
|
|
||||||
// por defecto, se deja cosido tapa blanda por ahora JJO
|
// por defecto, se deja cosido tapa blanda por ahora JJO
|
||||||
$tipo_presupuesto_id = $reqData['tipo_presupuesto_id'] ?? 4;
|
$tipo_impresion_id = $reqData['tipo_impresion_id'] ?? 4;
|
||||||
|
|
||||||
if (is_null($type)) {
|
if (is_null($type)) {
|
||||||
|
|
||||||
$searchValues = get_filter_datatables_columns($reqData);
|
$searchValues = get_filter_datatables_columns($reqData);
|
||||||
|
|
||||||
$resourceData = $this->model->getResource($searchValues, $tipo_presupuesto_id)->orderBy($order1, $dir1)->orderBy($order2, $dir2)
|
$resourceData = $this->model->getResource($searchValues, $tipo_impresion_id)->orderBy($order1, $dir1)->orderBy($order2, $dir2)
|
||||||
->orderBy($order3, $dir3)->limit($length, $start)->get()->getResultObject();
|
->orderBy($order3, $dir3)->limit($length, $start)->get()->getResultObject();
|
||||||
foreach ($resourceData as $item) :
|
foreach ($resourceData as $item) :
|
||||||
if (isset($item->comentarios_pdf) && strlen($item->comentarios_pdf) > 100) :
|
if (isset($item->comentarios_pdf) && strlen($item->comentarios_pdf) > 100) :
|
||||||
@ -455,7 +453,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
'ancho' => intval($reqData['ancho']) ?? 100000,
|
'ancho' => intval($reqData['ancho']) ?? 100000,
|
||||||
'alto' => intval($reqData['alto']) ?? 100000,
|
'alto' => intval($reqData['alto']) ?? 100000,
|
||||||
'a_favor_fibra' => $reqData['a_favor_fibra'] ?? 1,
|
'a_favor_fibra' => $reqData['a_favor_fibra'] ?? 1,
|
||||||
'isCosido' => true, // JJO esto es custom por cada tipo de presupuesto
|
'isCosido' => (new TipoPresupuestoModel())->get_isCosido($tipo_impresion_id), // JJO esto es custom por cada tipo de presupuesto
|
||||||
);
|
);
|
||||||
|
|
||||||
$papel_generico = [
|
$papel_generico = [
|
||||||
|
|||||||
@ -451,6 +451,8 @@ class PresupuestoService extends BaseService
|
|||||||
$h1_temp = 0;
|
$h1_temp = 0;
|
||||||
$h2_temp = 0;
|
$h2_temp = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// El ancho si es cosido es el doble
|
// El ancho si es cosido es el doble
|
||||||
if($uso != 'cubierta' && $uso != 'sobrecubierta'){
|
if($uso != 'cubierta' && $uso != 'sobrecubierta'){
|
||||||
$anchoForCalculo = $isCosido ? $ancho * 2 : $ancho;
|
$anchoForCalculo = $isCosido ? $ancho * 2 : $ancho;
|
||||||
@ -459,6 +461,13 @@ class PresupuestoService extends BaseService
|
|||||||
$anchoForCalculo = $ancho;
|
$anchoForCalculo = $ancho;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Generates a message like: User 123 logged into the system from 127.0.0.1
|
||||||
|
$info = [
|
||||||
|
'isCosido' => $anchoForCalculo,
|
||||||
|
];
|
||||||
|
|
||||||
|
log_message('error', 'isCosido en formas planas: {isCosido}', $info);
|
||||||
|
|
||||||
if($uso == 'cubierta' || $uso == 'sobrecubierta') {
|
if($uso == 'cubierta' || $uso == 'sobrecubierta') {
|
||||||
if(property_exists($maquina, 'forzar_num_formas_horizontales_cubierta') &&
|
if(property_exists($maquina, 'forzar_num_formas_horizontales_cubierta') &&
|
||||||
property_exists($maquina, 'forzar_num_formas_verticales_cubierta')){
|
property_exists($maquina, 'forzar_num_formas_verticales_cubierta')){
|
||||||
|
|||||||
@ -834,6 +834,7 @@
|
|||||||
const dimension = getDimensionLibro();
|
const dimension = getDimensionLibro();
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior',
|
type: 'interior',
|
||||||
color: is_color?1:0,
|
color: is_color?1:0,
|
||||||
hq: is_hq?1:0,
|
hq: is_hq?1:0,
|
||||||
@ -911,6 +912,7 @@
|
|||||||
if(checkInputsForRotativa()){
|
if(checkInputsForRotativa()){
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior_rot',
|
type: 'interior_rot',
|
||||||
paginas: parseInt($('#paginas').val()),
|
paginas: parseInt($('#paginas').val()),
|
||||||
paginas_negro: parseInt($('#compPaginasNegro').val()),
|
paginas_negro: parseInt($('#compPaginasNegro').val()),
|
||||||
@ -988,6 +990,7 @@
|
|||||||
const dimension = getDimensionLibro();
|
const dimension = getDimensionLibro();
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'cubierta',
|
type: 'cubierta',
|
||||||
paginas: parseInt($('#compCarasCubierta').select2('data')[0].id),
|
paginas: parseInt($('#compCarasCubierta').select2('data')[0].id),
|
||||||
tirada: parseInt($('#tirada').val()),
|
tirada: parseInt($('#tirada').val()),
|
||||||
|
|||||||
@ -1203,6 +1203,7 @@ function calcularPresupuesto_bn(input_data={}, updatedTipologias = false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
var datos = {
|
var datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior',
|
type: 'interior',
|
||||||
color: 0,
|
color: 0,
|
||||||
hq: 0,
|
hq: 0,
|
||||||
@ -1526,6 +1527,7 @@ function calcularPresupuesto_color(input_data={}, updatedTipologias = false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior',
|
type: 'interior',
|
||||||
color: 1,
|
color: 1,
|
||||||
hq: 0,
|
hq: 0,
|
||||||
@ -1822,6 +1824,7 @@ function calcularPresupuesto_bnhq(input_data={}, updatedTipologias = false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior',
|
type: 'interior',
|
||||||
color: 0,
|
color: 0,
|
||||||
hq: 1,
|
hq: 1,
|
||||||
@ -2121,6 +2124,7 @@ function calcularPresupuesto_colorhq(input_data={}, updatedTipologias = false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior',
|
type: 'interior',
|
||||||
color: 1,
|
color: 1,
|
||||||
hq: 1,
|
hq: 1,
|
||||||
@ -2412,6 +2416,7 @@ function calcularPresupuesto_rot_bn(fromComparador=false, updatedTipologias=fals
|
|||||||
}
|
}
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior_rot',
|
type: 'interior_rot',
|
||||||
color: 0,
|
color: 0,
|
||||||
hq: 0,
|
hq: 0,
|
||||||
@ -2745,6 +2750,7 @@ function calcularPresupuesto_rot_color(fromComparador=false, updatedTipologias=f
|
|||||||
paginas_color = isNaN(parseInt($('#lp_rot_color_numPagColor').val()))?input_data.paginas:parseInt($('#lp_rot_color_numPagColor').val())
|
paginas_color = isNaN(parseInt($('#lp_rot_color_numPagColor').val()))?input_data.paginas:parseInt($('#lp_rot_color_numPagColor').val())
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'interior_rot',
|
type: 'interior_rot',
|
||||||
color: 1,
|
color: 1,
|
||||||
hq: 0,
|
hq: 0,
|
||||||
@ -3060,6 +3066,7 @@ function calcularPresupuesto_cubierta(fromComparador=false, input_data={}){
|
|||||||
|
|
||||||
|
|
||||||
let datos = {
|
let datos = {
|
||||||
|
tipo_impresion_id: <?php echo $tipo_impresion_id ?>,
|
||||||
type: 'cubierta',
|
type: 'cubierta',
|
||||||
color: 1,
|
color: 1,
|
||||||
hq: 1,
|
hq: 1,
|
||||||
|
|||||||
@ -740,50 +740,50 @@
|
|||||||
|
|
||||||
$('#tab-pv-bn').on( "click", function() {
|
$('#tab-pv-bn').on( "click", function() {
|
||||||
|
|
||||||
previewInteriorPlana('bn');
|
previewInteriorPlana('bn', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-bnhq').on( "click", function() {
|
$('#tab-pv-bnhq').on( "click", function() {
|
||||||
|
|
||||||
previewInteriorPlana('bnhq');
|
previewInteriorPlana('bnhq', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-color').on( "click", function() {
|
$('#tab-pv-color').on( "click", function() {
|
||||||
|
|
||||||
previewInteriorPlana('color');
|
previewInteriorPlana('color', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-colorhq').on( "click", function() {
|
$('#tab-pv-colorhq').on( "click", function() {
|
||||||
|
|
||||||
|
|
||||||
previewInteriorPlana('colorhq');
|
previewInteriorPlana('colorhq', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-rot-bn').on( "click", function() {
|
$('#tab-pv-rot-bn').on( "click", function() {
|
||||||
|
|
||||||
previewRotativa('rot_bn');
|
previewRotativa('rot_bn', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-rot-color').on( "click", function() {
|
$('#tab-pv-rot-color').on( "click", function() {
|
||||||
|
|
||||||
previewRotativa('rot_color');
|
previewRotativa('rot_color', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-cubierta').on( "click", function() {
|
$('#tab-pv-cubierta').on( "click", function() {
|
||||||
|
|
||||||
previewInteriorPlana('cubierta');
|
previewInteriorPlana('cubierta', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$('#tab-pv-esquema-cubierta').on( "click", function() {
|
$('#tab-pv-esquema-cubierta').on( "click", function() {
|
||||||
|
|
||||||
previewEsquemaCubierta('ec');
|
previewEsquemaCubierta('ec', <?php echo $isCosido; ?>);
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// Global parameters
|
// Global parameters
|
||||||
var _isCosido = true;
|
//var _isCosido = true;
|
||||||
var pvObj;
|
var pvObj;
|
||||||
|
|
||||||
var sangradoTexto = "Sangrado 5 mm";
|
var sangradoTexto = "Sangrado 5 mm";
|
||||||
@ -7,7 +7,7 @@ var sangradoValor = parseFloat(5); // mm
|
|||||||
var offsetSolapaValor = parseFloat(0); // mm
|
var offsetSolapaValor = parseFloat(0); // mm
|
||||||
|
|
||||||
|
|
||||||
function previewInteriorPlana(lpTagName) {
|
function previewInteriorPlana(lpTagName, isCosido) {
|
||||||
|
|
||||||
// Local parameters
|
// Local parameters
|
||||||
let guardaV = 0;
|
let guardaV = 0;
|
||||||
@ -15,7 +15,7 @@ function previewInteriorPlana(lpTagName) {
|
|||||||
let styleText = {size: 12, family: 'Public Sans'};
|
let styleText = {size: 12, family: 'Public Sans'};
|
||||||
|
|
||||||
// Get the preview Object parameters
|
// Get the preview Object parameters
|
||||||
getObjetoLP(lpTagName);
|
getObjetoLP(lpTagName, isCosido);
|
||||||
|
|
||||||
// Configuracion de las guardas
|
// Configuracion de las guardas
|
||||||
// Guarda vertical
|
// Guarda vertical
|
||||||
@ -83,7 +83,7 @@ function previewInteriorPlana(lpTagName) {
|
|||||||
_pvPlana.update();
|
_pvPlana.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
function previewRotativa(lpTagName) {
|
function previewRotativa(lpTagName, isCosido) {
|
||||||
|
|
||||||
// Local parameters
|
// Local parameters
|
||||||
let styleText = {size: 12, family: 'Public Sans'};
|
let styleText = {size: 12, family: 'Public Sans'};
|
||||||
@ -92,7 +92,7 @@ function previewRotativa(lpTagName) {
|
|||||||
let guardaH = 0;
|
let guardaH = 0;
|
||||||
|
|
||||||
// Get the preview Object parameters
|
// Get the preview Object parameters
|
||||||
getObjetoLP(lpTagName);
|
getObjetoLP(lpTagName, isCosido);
|
||||||
|
|
||||||
// Calculos
|
// Calculos
|
||||||
// Configuracion de las guardas
|
// Configuracion de las guardas
|
||||||
@ -186,14 +186,14 @@ function getDecimalPart(floatNumber) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function previewEsquemaCubierta(lpTagName) {
|
function previewEsquemaCubierta(lpTagName, isCosido) {
|
||||||
|
|
||||||
// Variables locales
|
// Variables locales
|
||||||
let altoLibro, anchoLibro, lomoLibro, anchoSolapa, anchoCubierta, altoSangrado, anchoSangrado;
|
let altoLibro, anchoLibro, lomoLibro, anchoSolapa, anchoCubierta, altoSangrado, anchoSangrado;
|
||||||
let styleCotas = {size: 12, family: 'Public Sans'};
|
let styleCotas = {size: 12, family: 'Public Sans'};
|
||||||
|
|
||||||
// Get the preview Object parameters
|
// Get the preview Object parameters
|
||||||
getObjetoLP(lpTagName);
|
getObjetoLP(lpTagName, isCosido);
|
||||||
|
|
||||||
// Definicion de los parametros del Esquema de Cubierta (EC)
|
// Definicion de los parametros del Esquema de Cubierta (EC)
|
||||||
if (pvObj.anchoSolapa == 0) {
|
if (pvObj.anchoSolapa == 0) {
|
||||||
@ -360,7 +360,7 @@ function getLomoLibro() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getObjetoLP(lpName) {
|
function getObjetoLP(lpName, _isCosido) {
|
||||||
|
|
||||||
let rowData = null;
|
let rowData = null;
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<input type="hidden" name="tipo_impresion_id" id="tipo_impresion_id" class="form-control"
|
<input type="hidden" name="tipo_impresion_id" id="tipo_impresion_id" class="form-control"
|
||||||
value="<?= $tipo_impresion_id ?>"></input>
|
value="<?= $tipo_impresion_id ?>"></input>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/ ") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems") ?>
|
||||||
<?php if (str_contains($formAction, 'edit')): ?>
|
<?php if (str_contains($formAction, 'edit')): ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
|
||||||
|
|||||||
@ -156,7 +156,7 @@ theTable = $('#tableOfPresupuestos').DataTable({
|
|||||||
ajax : $.fn.dataTable.pipeline( {
|
ajax : $.fn.dataTable.pipeline( {
|
||||||
url: '<?= route_to('dataTableOfCosidotapablanda') ?>',
|
url: '<?= route_to('dataTableOfCosidotapablanda') ?>',
|
||||||
data: function (d) {
|
data: function (d) {
|
||||||
d.tipo_presupuesto_id = '<?php echo $tipo_impresion_id; ?>';
|
d.tipo_impresion_id = '<?php echo $tipo_impresion_id; ?>';
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
||||||
|
|||||||
Reference in New Issue
Block a user