hecho el html de las lineas de presupuesto

This commit is contained in:
Jaime Jiménez Ortega
2023-11-01 19:17:04 +01:00
parent f905e017ac
commit d7574a0e2f
9 changed files with 997 additions and 109 deletions

View File

@ -4,6 +4,7 @@ namespace App\Controllers;
use App\Controllers\BaseController;
use App\Models\Configuracion\MaquinasTarifasImpresionModel;
use App\Models\Configuracion\PapelGenericoModel;
use App\Models\Configuracion\MaquinaModel;
use App\Services\PresupuestoService;
@ -16,7 +17,21 @@ class Test extends BaseController
public function index()
{
$this->testLineasCubierta();
$this->testLineasIntPlana();
}
public function getPapelesHQ(){
$model = model('App\Models\Configuracion\PapelGenericoModel');
$data = $model->getPapelForComparador('colorhq', false, false);
var_dump($data);
}
public function getGramaje(){
$model = new PapelGenericoModel();
$data = $model->getGramajeComparador("AHUESADO OFFSET", "bnhq" );
var_dump($data);
}
public function testGetPrecioPliegoRotativa()
@ -58,8 +73,8 @@ class Test extends BaseController
public static function testLineasIntPlana()
{
$uso = 'negro';
$tipo = 'color';
$uso = 'interior';
$tipo = 'colorhq';
$datosPedido = (object)array(
'paginas' => 200,
'tirada' => 500,
@ -73,7 +88,7 @@ class Test extends BaseController
$maquina_model = new \App\Models\Configuracion\MaquinaModel();
$opciones_papel = array(
'bn' => 1,
'color' => 1,
'cubierta' => 0,
'sobrecubierta' => 0,
'rotativa' => 0,
@ -88,7 +103,7 @@ class Test extends BaseController
echo '-------------------------------';
$maquinas = $maquina_model->getMaquinaImpresionForPresupuesto(
is_rotativa: $papel->rotativa,
tarifa_tipo: 'negro',
tarifa_tipo: 'colorhq',
tirada: $datosPedido->tirada + $datosPedido->merma,
papel_impresion_id: $papel->id,
);

View File

@ -99,7 +99,43 @@ return [
'rotativa' => 'rotary',
'lineasPresupuesto' => 'Budget Lines',
'tiempo' => 'Time',
'porDefecto' => 'Deafult',
'tipoImpresion' => 'Print',
'numPagColor' => 'No Color Pages',
'saturacion' => 'Saturation',
'cobNegro' => 'Cov. % Black',
'cobCyan' => 'Cov. % Cyan',
'cobMagenta' => 'Cov. % Magenta',
'cobAmarillo' => 'Cov. % Yellow',
'gotaNegro' => 'Black drop',
'gotaColor' => 'Color drop',
'totalLinea' => 'TOTAL LINE',
'verCalculos' => 'Calculations',
'metrosMinuto' => 'Meters x min.',
'resolucion' => 'Resolution (dpi)',
'areaPaginas' => 'Pages area (in)',
'gotasNegro' => 'No black drops',
'gotasCyan' => 'No color drops',
'gotasMagenta' => 'No magenta drops',
'gotasAmarillo' => 'No yellow drops',
'precioPagNegro' => 'Price black pages',
'precioPagColor' => 'Price color pages',
'factorAltura' => 'Height factor',
'factorAnchura' => 'Width factor',
'paginasPliego' => 'Pages/sheet',
'metrosPapelLibro' => 'M. Paper Book',
'metrosPapelTotal' => 'M. Paper Total',
'clicksLibro' => 'Clicks/Book',
'gTintaNegro' => 'G. Black Ink',
'gTintaCyan' => 'G. Cyan Ink',
'gTintaMagenta' => 'G. Magenta Ink',
'gTintaAmarillo' => 'G. Yellow Ink',
'clicksPedido' => 'Clicks Order',
'totalClicks' => 'Total Clicks',
'totalTinta' => 'Total Ink',
'totalCorte' => 'Total Cut',
'totalImpresion' => 'TOTAL PRINT',
/* '4x0' => '4x0',
'4x4' => '4x4',

View File

@ -78,7 +78,7 @@ return [
'totalTinta' => 'Total tinta',
'totalCorte' => 'Total corte',
'total' => 'Total',
'aFavorFibra' => 'A favor fibra',
'aFavorFibra' => 'A favor de fibra',
'cubierta' => 'Cubierta',
'sobrecubierta' => 'Sobrecubierta',
'encuadernacion' => 'Encuadernación',
@ -98,6 +98,50 @@ return [
'rotativa' => 'rotativa',
'lineasPresupuesto' => 'Líneas Presupuesto',
'tiempo' => 'Tiempo',
'porDefecto' => 'Por defecto',
'tipoImpresion' => 'Impresion',
'numPagColor' => 'Nº Paginas Color',
'saturacion' => 'Saturación',
'cobNegro' => 'Cob. % Negro',
'cobCyan' => 'Cob. % Cyan',
'cobMagenta' => 'Cob. % Magenta',
'cobAmarillo' => 'Cob. % Amarillo',
'gotaNegro' => 'Gota negro',
'gotaColor' => 'Gota color',
'totalLinea' => 'TOTAL LÍNEA',
'verCalculos' => 'Cálculos',
'metrosMinuto' => 'Metros x min.',
'resolucion' => 'Resolución (dpi)',
'areaPaginas' => 'Área páginas (in)',
'gotasNegro' => 'Nº gotas negro',
'gotasCyan' => 'Nº gotas cyan',
'gotasMagenta' => 'Nº gotas magenta',
'gotasAmarillo' => 'Nº gotas amarillo',
'precioPagNegro' => 'Precio pág. Negro',
'precioPagColor' => 'Precio pág. Color',
'factorAltura' => 'Factor altura',
'factorAnchura' => 'Factor anchura',
'paginasPliego' => 'Páginas/pliego',
'metrosPapelLibro' => 'M. Papel Libro',
'metrosPapelTotal' => 'M. Papel Total',
'clicksLibro' => 'Clicks/Libro',
'gTintaNegro' => 'G. tinta Negro',
'gTintaCyan' => 'G. tinta Cyan',
'gTintaMagenta' => 'G. tinta Magenta',
'gTintaAmarillo' => 'G. tinta Amarillo',
'clicksPedido' => 'Clicks Pedido',
'totalClicks' => 'Total Clicks',
'totalTinta' => 'Total Tinta',
'totalCorte' => 'Total Corte',
'totalImpresion' => 'TOTAL IMPRES.',
'velocidadCorte' => 'Velocidad corte',
'precioHoraCorte' => 'Precio hora corte',
'tiempoCorte' => 'Tiempo corte',
'gTintaNegroPed' => 'G.T. Negro Ped.',
'gTintaCyanPed' => 'G.T. Cyan Ped.',
'gTintaMagentaPed' => 'G.T. Magenta Ped.',
'gTintaAmarilloPed' => 'G.T. Amarillo Ped.',
'servicioAcabado' => 'Servicio de acabado',
'servicioPreimpresion' => 'Servicio de preimpresión',

View File

@ -114,6 +114,7 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
->where("t1.is_deleted", 0)
->where("t2.is_deleted", 0)
->where("t3.active", 1)
->where("t4.is_deleted", 0)
->where("t4.tipo", "impresion")
->where("t5.tipo", $tipo);
@ -134,21 +135,34 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
public function getGramajeComparador(string $papel_generico_nombre="", $uso="")
{
$tipo=$uso; // color y colorhq valen para los dos
if($uso == 'bn')
$tipo="negro";
if($uso == 'bnhq')
$tipo="negrohq";
$builder = $this->db
->table($this->table . " t1")
->select(
"t2.gramaje AS text"
)
->join("lg_papel_impresion t2", "t2.papel_generico_id = t1.id", "left")
->join("lg_maquina_papel_impresion t3", "t3.papel_impresion_id = t2.id", "left")
->join("lg_maquinas t4", "t3.maquina_id = t4.id", "left")
->join("lg_maquinas_tarifas_impresion t5", "t5.maquina_id = t4.id", "left")
->where("t1.is_deleted", 0)
->where("t2.is_deleted", 0)
->where("t2.isActivo", 1)
->where("t3.active", 1)
->where("t4.is_deleted", 0)
->where("t4.tipo", "impresion")
->where("t5.tipo", $tipo)
->where("t1.nombre", $papel_generico_nombre);
if($uso == 'bn')
if($uso == 'bn' || $uso == 'bnhq')
$builder->where("t2.bn", 1);
else if ($uso == 'color')
else if ($uso == 'color' || $uso == 'colorhq')
$builder->where("t2.color", 1);
else if ($uso == 'cubierta')
$builder->where("t2.cubierta", 1);

View File

@ -361,10 +361,18 @@ class PresupuestoService extends BaseService
}
public static function getTiempoMaquina($totalClicks, $precioClick, $velocidadMaquina) {
try {
if($precioClick>0 && $velocidadMaquina>0)
$minutos = (1.0*$totalClicks/$precioClick)/$velocidadMaquina;
else
$minutos = 0;
$minutos = (1.0*$totalClicks/$precioClick)/$velocidadMaquina;
return gmdate("H:i:s", round($minutos*60,0));
return gmdate("H:i:s", round($minutos*60,0));
} catch (Exception $e) {
return gmdate("H:i:s", round(0,0));
}
}

View File

@ -12,27 +12,784 @@
<table id="tableLineasPresupuesto" class="comparator-table table dt-responsive dataTable" style="width: 100%;">
<thead>
<tr>
<th style="padding-right: 0.75em;" width="33px"></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.paginas') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.papel') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.gramaje') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.marca') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.maquina') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.tiempo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.numeroPliegos') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.pliegosPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPliego') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.libro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalPapelPedido') ?></th>
<th style="padding-right: 0.75em;"></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.lomo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.peso') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.click') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalClicks') ?></th>
<th style="padding-right: 0.75em;"></th>
<th class="lp-header" width="33px"></th>
<th class="lp-header"><?= lang('Presupuestos.paginas') ?></th>
<th class="lp-header"><?= lang('Presupuestos.papel') ?></th>
<th class="lp-header"><?= lang('Presupuestos.gramaje') ?></th>
<th class="lp-header"><?= lang('Presupuestos.marca') ?></th>
<th class="lp-header"><?= lang('Presupuestos.maquina') ?></th>
<th class="lp-header"><?= lang('Presupuestos.tiempo') ?></th>
<th class="lp-header"><?= lang('Presupuestos.numeroPliegos') ?></th>
<th class="lp-header"><?= lang('Presupuestos.pliegosPedido') ?></th>
<th class="lp-header"><?= lang('Presupuestos.precioPliego') ?></th>
<th class="lp-header"><?= lang('Presupuestos.libro') ?></th>
<th class="lp-header"><?= lang('Presupuestos.totalPapelPedido') ?></th>
<th class="lp-header"></th>
<th class="lp-header"><?= lang('Presupuestos.lomo') ?></th>
<th class="lp-header"><?= lang('Presupuestos.peso') ?></th>
<th class="lp-header"><?= lang('Presupuestos.click') ?></th>
<th class="lp-header"><?= lang('Presupuestos.totalClicks') ?></th>
<th class="lp-header"></th>
<th class="lp-header"></th>
</tr>
</thead>
<tbody>
<tr id="lp_bn">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_bn.png') ?>" /></td>
<td class="lp-td"><input id="lp_bn_paginas" name="lp_bn_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_bn_papel" name="lp_bn_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoNegroList) && is_array($papelGenericoNegroList) && !empty($papelGenericoNegroList)) :
foreach ($papelGenericoNegroList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_bn_gramaje" name="lp_bn_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_bn_papelCompra" name="lp_bn_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_bn_maquina" name="lp_bn_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_bn_tiempo" name="lp_bn_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_numeroPliegos" name="lp_bn_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_pliegosPedido" name="lp_bn_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_precioPliego" name="lp_bn_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_libro" name="lp_bn_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_totalPapelPedido" name="lp_bn_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_checkPapel" name="lp_bn_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_bn_lomo" name="lp_bn_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_peso" name="lp_bn_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_click" name="lp_bn_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_bn_totalClicks" name="lp_bn_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bn_checkClicks" name="lp_bn_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_bnhq">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_bnhq.png') ?>" /></td>
<td class="lp-td"><input id="lp_bnhq_paginas" name="lp_bnhq_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_bnhq_papel" name="lp_bnhq_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoNegroHQList) && is_array($papelGenericoNegroHQList) && !empty($papelGenericoNegroHQList)) :
foreach ($papelGenericoNegroHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_bnhq_gramaje" name="lp_bnhq_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_bnhq_papelCompra" name="lp_bnhq_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_bnhq_maquina" name="lp_bnhq_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_bnhq_tiempo" name="lp_bnhq_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_numeroPliegos" name="lp_bnhq_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_pliegosPedido" name="lp_bnhq_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_precioPliego" name="lp_bnhq_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_libro" name="lp_bnhq_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_totalPapelPedido" name="lp_bnhq_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_checkPapel" name="lp_bnhq_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_bnhq_lomo" name="lp_bnhq_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_peso" name="lp_bnhq_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_click" name="lp_bnhq_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_totalClicks" name="lp_bnhq_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_bnhq_checkClicks" name="lp_bnhq_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_color">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_color.png') ?>" /></td>
<td class="lp-td"><input id="lp_color_paginas" name="lp_color_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_color_papel" name="lp_color_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorList) && is_array($papelGenericoColorList) && !empty($papelGenericoColorList)) :
foreach ($papelGenericoColorList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_color_gramaje" name="lp_color_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_color_papelCompra" name="lp_color_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_color_maquina" name="lp_color_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_color_tiempo" name="lp_color_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_numeroPliegos" name="lp_color_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_pliegosPedido" name="lp_color_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_precioPliego" name="lp_color_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_libro" name="lp_color_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_totalPapelPedido" name="lp_color_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_checkPapel" name="lp_color_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_color_lomo" name="lp_color_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_peso" name="lp_color_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_click" name="lp_color_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_color_totalClicks" name="lp_color_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_color_checkClicks" name="lp_color_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_colorhq">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_colorhq.png') ?>" /></td>
<td class="lp-td"><input id="lp_colorhq_paginas" name="lp_colorhq_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_colorhq_papel" name="lp_colorhq_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorHQList) && is_array($papelGenericoColorHQList) && !empty($papelGenericoColorHQList)) :
foreach ($papelGenericoColorHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_colorhq_gramaje" name="lp_colorhq_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_colorhq_papelCompra" name="lp_colorhq_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_colorhq_maquina" name="lp_colorhq_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_colorhq_tiempo" name="lp_colorhq_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_numeroPliegos" name="lp_colorhq_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_pliegosPedido" name="lp_colorhq_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_precioPliego" name="lp_colorhq_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_libro" name="lp_colorhq_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_totalPapelPedido" name="lp_colorhq_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_checkPapel" name="lp_colorhq_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_colorhq_lomo" name="lp_colorhq_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_peso" name="lp_colorhq_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_click" name="lp_colorhq_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_totalClicks" name="lp_colorhq_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_colorhq_checkClicks" name="lp_colorhq_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_rot_bn" style="border-bottom-color: white;">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_rotativa_bn.png') ?>" /></td>
<td class="lp-td"><input id="lp_rot_bn_paginas" name="lp_rot_bn_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_rot_bn_papel" name="lp_rot_bn_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorHQList) && is_array($papelGenericoColorHQList) && !empty($papelGenericoColorHQList)) :
foreach ($papelGenericoColorHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_rot_bn_gramaje" name="lp_rot_bn_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_rot_bn_papelCompra" name="lp_rot_bn_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_rot_bn_maquina" name="lp_rot_bn_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_rot_bn_tiempo" name="lp_rot_bn_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_numeroPliegos" name="lp_rot_bn_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_pliegosPedido" name="lp_rot_bn_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_precioPliego" name="lp_rot_bn_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_libro" name="lp_rot_bn_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_totalPapelPedido" name="lp_rot_bn_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_checkPapel" name="lp_rot_bn_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_rot_bn_lomo" name="lp_rot_bn_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_peso" name="lp_rot_bn_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_click" name="lp_rot_bn_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_totalClicks" name="lp_rot_bn_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_bn_checkClicks" name="lp_rot_bn_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_rot_bn_data" >
<td class="lp-td"></td>
<td class="lp-td" colspan="18" style="padding-top: 0px;">
<div class="row">
<div class="col-md-12 col-lg-1">
<button id="lp_rot_bn_defecto" name="lp_rot_bn_defecto" type="button" class="btn btn-label-primary waves-effect lp-button"><?= lang('Presupuestos.porDefecto') ?></button>
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.numPagColor') ?>
<input type="text" id="lp_rot_bn_numPagColor" name="lp_rot_bn_numPagColor" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.saturacion') ?>
<input type="text" id="lp_rot_bn_saturacion" name="lp_rot_bn_saturacion" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobNegro') ?>
<input type="text" id="lp_rot_bn_cobNegro" name="lp_rot_bn_cobNegro" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobCyan') ?>
<input type="text" id="lp_rot_bn_cobCyan" name="lp_rot_bn_cobCyan" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobMagenta') ?>
<input type="text" id="lp_rot_bn_cobMagenta" name="lp_rot_bn_cobMagenta" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobAmarillo') ?>
<input type="text" id="lp_rot_bn_cobAmarillo" name="lp_rot_bn_cobAmarillo" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotaNegro') ?>
<input type="text" id="lp_rot_bn_gotaNegro" name="lp_rot_bn_gotaNegro" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotaColor') ?>
<input type="text" id="lp_rot_bn_gotaColor" name="lp_rot_bn_gotaColor" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1" style="display: grid;">
<?= lang('Presupuestos.aFavorFibra') ?>
<input type="checkbox" id="lp_rot_bn_aFavorFibra" name="lp_rot_bn_aFavorFibra" checked >
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalLinea') ?>
<input type="text" id="lp_rot_bn_totalLinea" name="lp_rot_bn_totalLinea" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<button id="lp_rot_bn_vercalculos" name="lp_rot_bn_vercalculos" type="button" class="btn btn-label-primary waves-effect lp-button"><?= lang('Presupuestos.verCalculos') ?></button>
</div>
</div>
<div class="row calculos_rot_bn" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosMinuto') ?>
<input type="text" id="lp_rot_bn_metrosMinuto" name="lp_rot_bn_metrosMinuto" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.resolucion') ?>
<input type="text" id="lp_rot_bn_resolucion" name="lp_rot_bn_resolucion" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.areaPaginas') ?>
<input type="text" id="lp_rot_bn_areaPaginas" name="lp_rot_bn_areaPaginas" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasNegro') ?>
<input type="text" id="lp_rot_bn_gotasNegro" name="lp_rot_bn_gotasNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasCyan') ?>
<input type="text" id="lp_rot_bn_gotasCyan" name="lp_rot_bn_gotasCyan" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasMagenta') ?>
<input type="text" id="lp_rot_bn_gotasMagenta" name="lp_rot_bn_gotasMagenta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasAmarillo') ?>
<input type="text" id="lp_rot_bn_gotasAmarillo" name="lp_rot_bn_gotasAmarillo" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioPagNegro') ?>
<input type="text" id="lp_rot_bn_precioPagNegro" name="lp_rot_bn_precioPagNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioPagColor') ?>
<input type="text" id="lp_rot_bn_precioPagColor" name="lp_rot_bn_precioPagColor" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.factorAltura') ?>
<input type="text" id="lp_rot_bn_factorAltura" name="lp_rot_bn_factorAltura" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.factorAnchura') ?>
<input type="text" id="lp_rot_bn_factorAnchura" name="lp_rot_bn_factorAnchura" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.paginasPliego') ?>
<input type="text" id="lp_rot_bn_paginasPliego" name="lp_rot_bn_paginasPliego" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
<div class="row calculos_rot_bn" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosPapelLibro') ?>
<input type="text" id="lp_rot_bn_metrosPapelLibro" name="lp_rot_bn_metrosPapelLibro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosPapelTotal') ?>
<input type="text" id="lp_rot_bn_metrosPapelTotal" name="lp_rot_bn_metrosPapelTotal" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.clicksLibro') ?>
<input type="text" id="lp_rot_bn_clicksLibro" name="lp_rot_bn_clicksLibro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaNegro') ?>
<input type="text" id="lp_rot_bn_gTintaNegro" name="lp_rot_bn_gTintaNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaCyan') ?>
<input type="text" id="lp_rot_bn_gTintaCyan" name="lp_rot_bn_gTintaCyan" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaMagenta') ?>
<input type="text" id="lp_rot_bn_gTintaMagenta" name="lp_rot_bn_gTintaMagenta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaAmarillo') ?>
<input type="text" id="lp_rot_bn_gTintaAmarillo" name="lp_rot_bn_gTintaAmarillo" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.clicksPedido') ?>
<input type="text" id="lp_rot_bn_clicksPedido" name="lp_rot_bn_clicksPedido" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalClicks') ?>
<input type="text" id="lp_rot_bn_totalClicks" name="lp_rot_bn_totalClicks" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalTinta') ?>
<input type="text" id="lp_rot_bn_totalTinta" name="lp_rot_bn_totalTinta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalCorte') ?>
<input type="text" id="lp_rot_bn_totalCorte" name="lp_rot_bn_totalCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalImpresion') ?>
<input type="text" id="lp_rot_bn_totalImpresion" name="lp_rot_bn_totalImpresion" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
<div class="row calculos_rot_bn" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.velocidadCorte') ?>
<input type="text" id="lp_rot_bn_velocidadCorte" name="lp_rot_bn_velocidadCorte" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioHoraCorte') ?>
<input type="text" id="lp_rot_bn_precioHoraCorte" name="lp_rot_bn_precioHoraCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.tiempoCorte') ?>
<input type="text" id="lp_rot_bn_tiempoCorte" name="lp_rot_bn_tiempoCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaNegroPed') ?>
<input type="text" id="lp_rot_bn_gTintaNegroPed" name="lp_rot_bn_gTintaNegroPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaCyanPed') ?>
<input type="text" id="lp_rot_bn_gTintaCyanPed" name="lp_rot_bn_gTintaCyanPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaMagentaPed') ?>
<input type="text" id="lp_rot_bn_gTintaMagentaPed" name="lp_rot_bn_gTintaMagentaPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaAmarilloPed') ?>
<input type="text" id="lp_rot_bn_gTintaAmarilloPed" name="lp_rot_bn_gTintaAmarilloPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
</td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
</tr>
<tr id="lp_rot_color" style="border-bottom-color: white;">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_rotativa_color.png') ?>" /></td>
<td class="lp-td"><input id="lp_rot_color_paginas" name="lp_rot_color_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_rot_color_papel" name="lp_rot_color_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorHQList) && is_array($papelGenericoColorHQList) && !empty($papelGenericoColorHQList)) :
foreach ($papelGenericoColorHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_rot_color_gramaje" name="lp_rot_color_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_rot_color_papelCompra" name="lp_rot_color_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_rot_color_maquina" name="lp_rot_color_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_rot_color_tiempo" name="lp_rot_color_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_numeroPliegos" name="lp_rot_color_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_pliegosPedido" name="lp_rot_color_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_precioPliego" name="lp_rot_color_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_libro" name="lp_rot_color_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_totalPapelPedido" name="lp_rot_color_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_checkPapel" name="lp_rot_color_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_rot_color_lomo" name="lp_rot_color_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_peso" name="lp_rot_color_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_click" name="lp_rot_color_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_totalClicks" name="lp_rot_color_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_rot_color_checkClicks" name="lp_rot_color_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_rot_color_data" >
<td class="lp-td"></td>
<td class="lp-td" colspan="18" style="padding-top: 0px;">
<div class="row">
<div class="col-md-12 col-lg-1">
<button id="lp_rot_color_defecto" name="lp_rot_color_defecto" type="button" class="btn btn-label-primary waves-effect lp-button"><?= lang('Presupuestos.porDefecto') ?></button>
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.numPagColor') ?>
<input type="text" id="lp_rot_color_numPagColor" name="lp_rot_color_numPagColor" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.saturacion') ?>
<input type="text" id="lp_rot_color_saturacion" name="lp_rot_color_saturacion" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobNegro') ?>
<input type="text" id="lp_rot_color_cobNegro" name="lp_rot_color_cobNegro" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobCyan') ?>
<input type="text" id="lp_rot_color_cobCyan" name="lp_rot_color_cobCyan" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobMagenta') ?>
<input type="text" id="lp_rot_color_cobMagenta" name="lp_rot_color_cobMagenta" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.cobAmarillo') ?>
<input type="text" id="lp_rot_color_cobAmarillo" name="lp_rot_color_cobAmarillo" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotaNegro') ?>
<input type="text" id="lp_rot_color_gotaNegro" name="lp_rot_color_gotaNegro" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotaColor') ?>
<input type="text" id="lp_rot_color_gotaColor" name="lp_rot_color_gotaColor" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1" style="display: grid;">
<?= lang('Presupuestos.aFavorFibra') ?>
<input type="checkbox" id="lp_rot_color_aFavorFibra" name="lp_rot_color_aFavorFibra" checked >
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalLinea') ?>
<input type="text" id="lp_rot_color_totalLinea" name="lp_rot_color_totalLinea" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<button id="lp_rot_color_vercalculos" name="lp_rot_color_vercalculos" type="button" class="btn btn-label-primary waves-effect lp-button"><?= lang('Presupuestos.verCalculos') ?></button>
</div>
</div>
<div class="row calculos_rot_color" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosMinuto') ?>
<input type="text" id="lp_rot_color_metrosMinuto" name="lp_rot_color_metrosMinuto" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.resolucion') ?>
<input type="text" id="lp_rot_color_resolucion" name="lp_rot_color_resolucion" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.areaPaginas') ?>
<input type="text" id="lp_rot_color_areaPaginas" name="lp_rot_color_areaPaginas" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasNegro') ?>
<input type="text" id="lp_rot_color_gotasNegro" name="lp_rot_color_gotasNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasCyan') ?>
<input type="text" id="lp_rot_color_gotasCyan" name="lp_rot_color_gotasCyan" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasMagenta') ?>
<input type="text" id="lp_rot_color_gotasMagenta" name="lp_rot_color_gotasMagenta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gotasAmarillo') ?>
<input type="text" id="lp_rot_color_gotasAmarillo" name="lp_rot_color_gotasAmarillo" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioPagNegro') ?>
<input type="text" id="lp_rot_color_precioPagNegro" name="lp_rot_color_precioPagNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioPagColor') ?>
<input type="text" id="lp_rot_color_precioPagColor" name="lp_rot_color_precioPagColor" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.factorAltura') ?>
<input type="text" id="lp_rot_color_factorAltura" name="lp_rot_color_factorAltura" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.factorAnchura') ?>
<input type="text" id="lp_rot_color_factorAnchura" name="lp_rot_color_factorAnchura" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.paginasPliego') ?>
<input type="text" id="lp_rot_color_paginasPliego" name="lp_rot_color_paginasPliego" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
<div class="row calculos_rot_color" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosPapelLibro') ?>
<input type="text" id="lp_rot_color_metrosPapelLibro" name="lp_rot_color_metrosPapelLibro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.metrosPapelTotal') ?>
<input type="text" id="lp_rot_color_metrosPapelTotal" name="lp_rot_color_metrosPapelTotal" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.clicksLibro') ?>
<input type="text" id="lp_rot_color_clicksLibro" name="lp_rot_color_clicksLibro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaNegro') ?>
<input type="text" id="lp_rot_color_gTintaNegro" name="lp_rot_color_gTintaNegro" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaCyan') ?>
<input type="text" id="lp_rot_color_gTintaCyan" name="lp_rot_color_gTintaCyan" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaMagenta') ?>
<input type="text" id="lp_rot_color_gTintaMagenta" name="lp_rot_color_gTintaMagenta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaAmarillo') ?>
<input type="text" id="lp_rot_color_gTintaAmarillo" name="lp_rot_color_gTintaAmarillo" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.clicksPedido') ?>
<input type="text" id="lp_rot_color_clicksPedido" name="lp_rot_color_clicksPedido" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalClicks') ?>
<input type="text" id="lp_rot_color_totalClicks" name="lp_rot_color_totalClicks" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalTinta') ?>
<input type="text" id="lp_rot_color_totalTinta" name="lp_rot_color_totalTinta" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalCorte') ?>
<input type="text" id="lp_rot_color_totalCorte" name="lp_rot_color_totalCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.totalImpresion') ?>
<input type="text" id="lp_rot_color_totalImpresion" name="lp_rot_color_totalImpresion" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
<div class="row calculos_rot_color" style="display: none;">
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.velocidadCorte') ?>
<input type="text" id="lp_rot_color_velocidadCorte" name="lp_rot_color_velocidadCorte" class="lp-cell lp-input" value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.precioHoraCorte') ?>
<input type="text" id="lp_rot_color_precioHoraCorte" name="lp_rot_color_precioHoraCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.tiempoCorte') ?>
<input type="text" id="lp_rot_color_tiempoCorte" name="lp_rot_color_tiempoCorte" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaNegroPed') ?>
<input type="text" id="lp_rot_color_gTintaNegroPed" name="lp_rot_color_gTintaNegroPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaCyanPed') ?>
<input type="text" id="lp_rot_color_gTintaCyanPed" name="lp_rot_color_gTintaCyanPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaMagentaPed') ?>
<input type="text" id="lp_rot_color_gTintaMagentaPed" name="lp_rot_color_gTintaMagentaPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
<div class="col-md-12 col-lg-1">
<?= lang('Presupuestos.gTintaAmarilloPed') ?>
<input type="text" id="lp_rot_color_gTintaAmarilloPed" name="lp_rot_color_gTintaAmarilloPed" class="lp-cell lp-cell-disabled lp-input" readonly value="0">
</div>
</div>
</td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
<td style="display: none;"></td>
</tr>
<tr id="lp_cubierta">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_cubierta.png') ?>" /></td>
<td class="lp-td"><input id="lp_cubierta_paginas" name="lp_cubierta_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_cubierta_papel" name="lp_cubierta_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorHQList) && is_array($papelGenericoColorHQList) && !empty($papelGenericoColorHQList)) :
foreach ($papelGenericoColorHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_cubierta_gramaje" name="lp_cubierta_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_cubierta_papelCompra" name="lp_cubierta_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_cubierta_maquina" name="lp_cubierta_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_cubierta_tiempo" name="lp_cubierta_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_numeroPliegos" name="lp_cubierta_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_pliegosPedido" name="lp_cubierta_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_precioPliego" name="lp_cubierta_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_libro" name="lp_cubierta_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_totalPapelPedido" name="lp_cubierta_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_checkPapel" name="lp_cubierta_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_cubierta_lomo" name="lp_cubierta_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_peso" name="lp_cubierta_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_click" name="lp_cubierta_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_totalClicks" name="lp_cubierta_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_cubierta_checkClicks" name="lp_cubierta_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
<tr id="lp_sobrecubierta">
<td class="lp-td"> <img style="padding: 0; margin:0;" src="<?= site_url('themes/vuexy/img/safekat/presupuestos/icon_sobrecubierta.png') ?>" /></td>
<td class="lp-td"><input id="lp_sobrecubierta_paginas" name="lp_sobrecubierta_paginas" class="lp-cell lp-input" type="text" value="0"></td>
<td class="lp-td">
<select id="lp_sobrecubierta_papel" name="lp_sobrecubierta_papel" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
<?php if (isset($papelGenericoColorHQList) && is_array($papelGenericoColorHQList) && !empty($papelGenericoColorHQList)) :
foreach ($papelGenericoColorHQList as $k => $v) : ?>
<?php if($v->id != 0): ?>
<option value="<?= $v->id ?>">
<?= $v->nombre ?>
</option>
<?php endif; ?>
<?php endforeach;
endif; ?>
</select>
</td>
<td class="lp-td">
<select id="lp_sobrecubierta_gramaje" name="lp_sobrecubierta_gramaje" class="form-control form-select-sm lp-cell lp-select" style="min-width: 40px;">
</select>
</td>
<td class="lp-td">
<select id="lp_sobrecubierta_papelCompra" name="lp_sobrecubierta_papelCompra" class="form-control form-select-sm lp-cell lp-select" style="min-width: 160px;">
</select>
</td>
<td class="lp-td">
<select id="lp_sobrecubierta_maquina" name="lp_sobrecubierta_maquina" class="form-control form-select-sm lp-cell lp-select" style="min-width: 120px;">
</select>
</td>
<td class="lp-td"><input id="lp_sobrecubierta_tiempo" name="lp_sobrecubierta_tiempo" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_numeroPliegos" name="lp_sobrecubierta_numeroPliegos" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_pliegosPedido" name="lp_sobrecubierta_pliegosPedido" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_precioPliego" name="lp_sobrecubierta_precioPliego" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_libro" name="lp_sobrecubierta_libro" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_totalPapelPedido" name="lp_sobrecubierta_totalPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_checkPapel" name="lp_sobrecubierta_checkPapel_bn" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td class="lp-td"><input id="lp_sobrecubierta_lomo" name="lp_sobrecubierta_lomo" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_peso" name="lp_sobrecubierta_peso" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_click" name="lp_sobrecubierta_click" readonly class="lp-input lp-cell lp-cell-disabled" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_totalClicks" name="lp_sobrecubierta_totalClicks" class="lp-input lp-cell lp-cell-disabled" type="text" value="0"></td>
<td class="lp-td"><input id="lp_sobrecubierta_checkClicks" name="lp_sobrecubierta_checkClicks" style="width: 15px; padding: 0; margin:0;" type="checkbox" checked></td>
<td style="padding: 0; margin:0;"><a href="javascript:void(0);"><i class="ti ti-trash ti-sm btn-delete mx-2"></i></a></td>
</tr>
</tbody>
</table>
@ -40,4 +797,26 @@
</div>
</div>
</div>
</div>
</div>
<!------------------------------------------->
<!-- Código JS de las lineas de presupuesto. -->
<!------------------------------------------->
<?= $this->section("additionalInlineJs") ?>
$('#lp_rot_color_vercalculos').on("click", function () {
if($( ".calculos_rot_color" ).css('display') == 'none')
$( ".calculos_rot_color" ).css('display', 'flex')
else{
$( ".calculos_rot_color" ).css('display', 'none')
}
});
$('#lp_rot_bn_vercalculos').on("click", function () {
if($( ".calculos_rot_bn" ).css('display') == 'none')
$( ".calculos_rot_bn" ).css('display', 'flex')
else{
$( ".calculos_rot_bn" ).css('display', 'none')
}
});
<?= $this->endSection() ?>

View File

@ -50,15 +50,19 @@ $('#compPaginasNegrohq').on("change", function () {
});
$('#compPaginasColorhq').on("change", function () {
if (document.getElementById('paginas').value < document.getElementById('compPaginasColorhq').value) {
document.getElementById('compPaginasColorhq').value = document.getElementById('paginas').value;
}
const paginas = parseInt(document.getElementById('paginas').value);
var color = parseInt(document.getElementById('compPaginasColorhq').value);
var negro = parseInt(document.getElementById('compPaginasNegrohq').value);
if (document.getElementById('compPaginasNegrohq').value + document.getElementById('compPaginasColorhq').value > document.getElementById('paginas').value) {
var newValue = document.getElementById('paginas').value - document.getElementById('compPaginasColorhq').value;
if (paginas < color) {
document.getElementById('compPaginasColorhq').value = paginas;
color = paginas
}
var newValue = paginas - color;
if (newValue != negro) {
document.getElementById('compPaginasNegrohq').value = newValue >= 0 ? newValue : 0;
$('#compPaginasNegrohq').change();
}
});
$('#paginas').on("change", function () {

View File

@ -116,6 +116,10 @@
allowClear: false,
});
$('#compGramajeColorhq').select2({
allowClear: false,
});
$('#compPapelCubierta').select2({
allowClear: false,
});
@ -334,6 +338,9 @@
]
});
const papelGenericoNegroList = <?php echo json_encode($papelGenericoNegroList); ?>;
var tableLineasPresupuesto = new DataTable('#tableLineasPresupuesto',{
scrollX: true,
searching: false,
@ -345,73 +352,7 @@
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},
columns: [
{ 'data': 'tipo',
'render': function ( data, type, row, meta ) {
if(data=='bn')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_bn.png") ?>\" />';
else if(data=='bnhq')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_bnhq.png") ?>\" />';
else if(data=='color')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_color.png") ?>\" />';
else if(data=='colorhq')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_colorhq.png") ?>\" />';
else if(data=='rotativabn')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_rotativa_bn.png") ?>\" />';
else if(data=='rotativacolor')
return '<img src=\"<?= site_url("themes/vuexy/img/safekat/presupuestos/icon_rotativa_color.png") ?>\" />';
else
return '';
}
},
{ 'data': 'paginas' },
{ 'data': 'papel' },
{ 'data': 'gramaje' },
{ 'data': 'marca' },
{ 'data': 'maquina' },
{ 'data': 'tiempo' },
{ 'data': 'numeroPliegos' },
{ 'data': 'pliegosPedido' },
{ 'data': 'precioPliego' },
{ 'data': 'libro' },
{ 'data': 'totalPapelPedido' },
{ 'data': 'chekPapel',
render: function (data,type,row) {
if (data == true) {
return '<input type="checkbox" checked>';
} else {
return '<input type="checkbox">';
}
return data;
}
},
{ 'data': 'lomo' },
{ 'data': 'peso' },
{ 'data': 'click' },
{ 'data': 'totalClicks' },
{ 'data': 'chekClicks',
render: function (data,type,row) {
if (data == true) {
return '<input type="checkbox" checked>';
} else {
return '<input type="checkbox">';
}
return data;
}
},
{ 'data': 'maquinaId'},
{ 'data': 'tiempoMaquina'},
{ 'data': 'maquinaVelocidad'},
{ 'data': 'papelGenericoId'},
{ 'data': 'papelImpresionId'}
],
columnDefs: [
{
target: [18,19,20,21,22],
visible: false,
searchable: false
},
]
});
@ -458,7 +399,7 @@
url: "/cosidotapablanda/datatable",
data: datos,
success: function (data) {
console.log(data)
clearIntLineas(is_color);
if(data.lineas.length >0){
@ -644,8 +585,7 @@
elementos = getIDsComparador(is_color, is_hq)
if ($('#compPaginasNegro').val() &&
$(''+ elementos.papel).select2('data').length > 0 &&
if ($(''+ elementos.papel).select2('data').length > 0 &&
$(''+ elementos.gramaje).select2('data').length > 0 &&
parseInt($(''+ elementos.paginas).val()) > 0 &&
checkDatosPedidoForComp()) {
@ -732,7 +672,7 @@
data: function (params) {
return {
tipo: 'gramaje',
uso: 'bn',
uso: 'bnhq',
datos: $('#compPapelNegrohq').select2('data')[0].text.trim() ,
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
};
@ -820,7 +760,7 @@
data: function (params) {
return {
tipo: 'gramaje',
uso: 'color',
uso: 'colorhq',
datos: $('#compPapelColorhq').select2('data')[0].text.trim() ,
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
};

View File

@ -40,4 +40,52 @@ table.dataTable.table-hover>tbody>tr.selected:hover>* {
.comparator-table td.dt-result-value {
text-align: left;
}
.lp-cell {
padding-left: 1px;
padding-right: 1px;
margin:0;
}
.lp-input {
min-width: 40px;
width: 100%;
border-radius: 0.25rem !important;
}
.lp-select {
padding-top: 2px;
padding-bottom: 2px;
width: 100%;
font-size:0.7rem !important;
}
.lp-td {
padding-left: 1px;
padding-right: 1px;
margin:0 !important;
}
.lp-header {
text-align: center !important;
padding-left: 1px !important;
padding-right: 1px !important;
padding-top: 1px !important;
padding-bottom: 5px !important;
margin:0 !important;
}
.lp-cell-disabled {
background-color: Gainsboro;
}
.lp-button{
font-size: 1.1em;
padding-left: 3px;
padding-right: 3px;
width: 100%;
height: 25px;
margin-top: 6px;
}