mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'dev/ajustes_imn_2' into 'main'
Corregidos cambios que faltaban See merge request jjimenez/safekat!93
This commit is contained in:
4
ci4/.env
4
ci4/.env
@ -22,8 +22,8 @@ CI_ENVIRONMENT = development
|
||||
# APP
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
app.baseURL = 'https://sk-jjo.imnavajas.es'
|
||||
#app.baseURL = 'https://sk-imn.imnavajas.es'
|
||||
#app.baseURL = 'https://sk-jjo.imnavajas.es'
|
||||
app.baseURL = 'https://sk-imn.imnavajas.es'
|
||||
# app.baseURL = "http://safekat.test/"
|
||||
# app.forceGlobalSecureRequests = false
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
<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"></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>
|
||||
@ -40,8 +41,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr id="lp_bn" class="lp-interior lp_bn" style="display: none;">
|
||||
<input type="hidden" name="lp_bn_tarifa_impresion_id" id="lp_bn_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bn_maquina_ancho" id="lp_bn_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bn_tarifa_impresion_id" id="lp_bn_tarifa_impresion_id" class="form-control" value="0"></input><input type="hidden" name="lp_bn_maquina_ancho" id="lp_bn_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bn_maquina_alto" id="lp_bn_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bn_maquina_impresion_ancho" id="lp_bn_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bn_maquina_impresion_alto" id="lp_bn_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
@ -80,23 +80,18 @@
|
||||
<td class="lp-td"><input id="lp_bn_precioPliego" name="lp_bn_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-bn-input" 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 lp-bn-input" 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 lp-bn-input" 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_margenPapelPedido" name="lp_bn_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-bn-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_bn_checkPapel" name="lp_bn_checkPapel_bn" class="update-totales" 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 lp-bn-input" 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 lp-bn-input" 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 lp-bn-input" value="0"></td>
|
||||
<td class="lp-td"><input id="lp_bn_totalClicks" name="lp_bn_totalClicks" class="lp-input lp-cell lp-cell-disabled lp-bn-input" 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 class="lp-td"><input id="lp_bn_checkClicks" name="lp_bn_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<tr id="lp_bnhq" class="lp-interior lp_bnhq" style="display: none;">
|
||||
<input type="hidden" name="lp_bnhq_tarifa_impresion_id" id="lp_bnhq_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_maquina_ancho" id="lp_bnhq_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_maquina_alto" id="lp_bnhq_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_maquina_impresion_ancho" id="lp_bnhq_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_maquina_impresion_alto" id="lp_bnhq_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_formas" id="lp_bnhq_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_bnhq_formas_orientacion" id="lp_bnhq_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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 lp-bnhq-input" type="text" value="0"></td>
|
||||
<td class="lp-td">
|
||||
@ -130,23 +125,18 @@
|
||||
<td class="lp-td"><input id="lp_bnhq_precioPliego" name="lp_bnhq_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-bnhq-input" 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 lp-bnhq-input" 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 lp-bnhq-input" 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_margenPapelPedido" name="lp_bnhq_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-bnhq-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_bnhq_checkPapel" name="lp_bnhq_checkPapel_bn"class="update-totales" 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 lp-bnhq-input" 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 lp-bnhq-input" 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 lp-bnhq-input" value="0"></td>
|
||||
<td class="lp-td"><input id="lp_bnhq_totalClicks" name="lp_bnhq_totalClicks" class="lp-input lp-cell lp-cell-disabled lp-bnhq-input" 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 class="lp-td"><input id="lp_bnhq_checkClicks" name="lp_bnhq_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<tr id="lp_color" class="lp-interior lp_color" style="display: none;">
|
||||
<input type="hidden" name="lp_color_tarifa_impresion_id" id="lp_color_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_maquina_ancho" id="lp_color_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_maquina_alto" id="lp_color_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_maquina_impresion_ancho" id="lp_color_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_maquina_impresion_alto" id="lp_color_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_formas" id="lp_color_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_color_formas_orientacion" id="lp_color_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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 lp-color-input" type="text" value="0"></td>
|
||||
<td class="lp-td">
|
||||
@ -180,24 +170,19 @@
|
||||
<td class="lp-td"><input id="lp_color_precioPliego" name="lp_color_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-color-input" 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 lp-color-input" 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 lp-color-input" 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_margenPapelPedido" name="lp_color_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-color-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_color_checkPapel" name="lp_color_checkPapel_bn"class="update-totales" 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 lp-color-input" 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 lp-color-input" 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 lp-color-input" value="0"></td>
|
||||
<td class="lp-td"><input id="lp_color_totalClicks" name="lp_color_totalClicks" class="lp-input lp-cell lp-cell-disabled lp-color-input" 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 class="lp-td"><input id="lp_color_checkClicks" name="lp_color_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr id="lp_colorhq" class="lp-interior lp_colorhq" style="display: none;">
|
||||
<input type="hidden" name="lp_colorhq_tarifa_impresion_id" id="lp_colorhq_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_maquina_ancho" id="lp_colorhq_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_maquina_alto" id="lp_colorhq_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_maquina_impresion_ancho" id="lp_colorhq_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_maquina_impresion_alto" id="lp_colorhq_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_formas" id="lp_colorhq_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_colorhq_formas_orientacion" id="lp_colorhq_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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 lp-colorhq-input" type="text" value="0"></td>
|
||||
<td class="lp-td">
|
||||
@ -231,23 +216,18 @@
|
||||
<td class="lp-td"><input id="lp_colorhq_precioPliego" name="lp_colorhq_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-colorhq-input" 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 lp-colorhq-input" 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 lp-colorhq-input" 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_margenPapelPedido" name="lp_colorhq_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-colorhq-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_colorhq_checkPapel" name="lp_colorhq_checkPapel_bn"class="update-totales" 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 lp-colorhq-input" 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 lp-colorhq-input" 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 lp-colorhq-input" value="0"></td>
|
||||
<td class="lp-td"><input id="lp_colorhq_totalClicks" name="lp_colorhq_totalClicks" class="lp-input lp-cell lp-cell-disabled lp-colorhq-input" 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 class="lp-td"><input id="lp_colorhq_checkClicks" name="lp_colorhq_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<tr id="lp_rot_bn" class="lp-rot lp_rot_bn" style="border-bottom-color: white; display: none;" >
|
||||
<input type="hidden" name="lp_rot_bn_tarifa_impresion_id" id="lp_rot_bn_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_maquina_ancho" id="lp_rot_bn_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_maquina_alto" id="lp_rot_bn_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_maquina_impresion_ancho" id="lp_rot_bn_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_maquina_impresion_alto" id="lp_rot_bn_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_formas" id="lp_rot_bn_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_bn_formas_orientacion" id="lp_rot_bn_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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 lp-rotbn-input" type="text" value="0"></td>
|
||||
<td class="lp-td">
|
||||
@ -281,17 +261,18 @@
|
||||
<td class="lp-td"><input id="lp_rot_bn_precioPliego" name="lp_rot_bn_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-rotbn-input" 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 lp-rotbn-input" 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 lp-rotbn-input" 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_margenPapelPedido" name="lp_rot_bn_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-rotbn-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_rot_bn_checkPapel" name="lp_rot_bn_checkPapel_bn"class="update-totales" 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 lp-rotbn-input" 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 lp-rotbn-input" 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 lp-rotbn-input" 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 lp-rotbn-input" 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 class="lp-td"><input id="lp_rot_bn_checkClicks" name="lp_rot_bn_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
<tr id="lp_rot_bn_data" class="lp-rot lp_rot_bn" style="display: none;">
|
||||
<td class="lp-td"></td>
|
||||
<td class="lp-td" colspan="18" style="padding-top: 0px;">
|
||||
<td class="lp-td" colspan="19" 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>
|
||||
@ -492,18 +473,13 @@
|
||||
<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" class="lp-rot lp_rot_color" style="border-bottom-color: white; display:none;">
|
||||
<input type="hidden" name="lp_rot_color_tarifa_impresion_id" id="lp_rot_color_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_maquina_ancho" id="lp_rot_color_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_maquina_alto" id="lp_rot_color_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_maquina_impresion_ancho" id="lp_rot_color_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_maquina_impresion_alto" id="lp_rot_color_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_formas" id="lp_rot_color_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_rot_color_formas_orientacion" id="lp_rot_color_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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 lp-rotcolor-input" type="text" value="0"></td>
|
||||
<td class="lp-td">
|
||||
@ -537,18 +513,19 @@
|
||||
<td class="lp-td"><input id="lp_rot_color_precioPliego" name="lp_rot_color_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-rotcolor-input" 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 lp-rotcolor-input" 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 lp-rotcolor-input" 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_margenPapelPedido" name="lp_rot_color_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-rotcolor-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_rot_color_checkPapel" name="lp_rot_color_checkPapel_bn"class="update-totales" 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 lp-rotcolor-input" 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 lp-rotcolor-input" 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 lp-rotcolor-input" 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 lp-rotcolor-input" 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 class="lp-td"><input id="lp_rot_color_checkClicks" name="lp_rot_color_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<tr id="lp_rot_color_data" class="lp-rot lp_rot_color" style="display: none;">
|
||||
<td class="lp-td"></td>
|
||||
<td class="lp-td" colspan="18" style="padding-top: 0px;">
|
||||
<td class="lp-td" colspan="19" 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>
|
||||
@ -749,16 +726,11 @@
|
||||
<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" class="lp_cubierta" style="display: none;">
|
||||
<input type="hidden" name="lp_cubierta_tarifa_impresion_id" id="lp_cubierta_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_maquina_ancho" id="lp_cubierta_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_maquina_alto" id="lp_cubierta_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_maquina_impresion_ancho" id="lp_cubierta_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_maquina_impresion_alto" id="lp_cubierta_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_formas" id="lp_cubierta_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_cubierta_formas_orientacion" id="lp_cubierta_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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">
|
||||
<select id="lp_cubierta_paginas" name="comp_paginas_cubierta" class="form-control form-select-sm lp-cell lp-select" style="min-width:50px;">
|
||||
@ -801,23 +773,18 @@
|
||||
<td class="lp-td"><input id="lp_cubierta_precioPliego" name="lp_cubierta_precioPliego" class="lp-input lp-cell lp-cell-disabled lp-cubierta-input" 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 lp-cubierta-input" 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 lp-cubierta-input" 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_margenPapelPedido" name="lp_cubierta_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled lp-cubierta-input" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_cubierta_checkPapel" name="lp_cubierta_checkPapel_bn"class="update-totales" 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 lp-cubierta-input" 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 lp-cubierta-input" 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 lp-cubierta-input" value="0"></td>
|
||||
<td class="lp-td"><input id="lp_cubierta_totalClicks" name="lp_cubierta_totalClicks" class="lp-input lp-cell lp-cell-disabled lp-cubierta-input" 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 class="lp-td"><input id="lp_cubierta_checkClicks" name="lp_cubierta_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<tr id="lp_sobrecubierta" style="display: none;">
|
||||
<input type="hidden" name="lp_sobrecubierta_tarifa_impresion_id" id="lp_sobrecubierta_tarifa_impresion_id" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_maquina_ancho" id="lp_sobrecubierta_maquina_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_maquina_alto" id="lp_sobrecubierta_maquina_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_maquina_impresion_ancho" id="lp_sobrecubierta_maquina_impresion_ancho" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_maquina_impresion_alto" id="lp_sobrecubierta_maquina_impresion_alto" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_formas" id="lp_sobrecubierta_formas" class="form-control" value="0"></input>
|
||||
<input type="hidden" name="lp_sobrecubierta_formas_orientacion" id="lp_sobrecubierta_formas_orientacion" class="form-control" value="0"></input>
|
||||
<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">
|
||||
@ -851,12 +818,13 @@
|
||||
<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_margenPapelPedido" name="lp_sobrecubierta_margenPapelPedido" readonly class="lp-input lp-cell lp-cell-disabled" type="text" value="0" style="display: none;"></td>
|
||||
<td class="lp-td"><input id="lp_sobrecubierta_checkPapel" name="lp_sobrecubierta_checkPapel_bn"class="update-totales" 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 class="lp-td"><input id="lp_sobrecubierta_checkClicks" name="lp_sobrecubierta_checkClicks"class="update-totales" 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" data-id="${data.id}" data-bs-toggle="modal" data-bs-target="#confirm2delete"></i></a></td>
|
||||
</tr>
|
||||
|
||||
@ -926,7 +894,6 @@ $('#lp_rot_bn_vercalculos').on("click", function () {
|
||||
$(document).on('click', '.btn-delete', function(e) {
|
||||
const row_id = $(this).closest('tr')[0].id;
|
||||
$(".btn-remove").attr('row-id', row_id);
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -942,6 +909,7 @@ $(document).on('click', '.btn-remove', function(e) {
|
||||
clear_interior(row_id)
|
||||
}
|
||||
$('#confirm2delete').modal('toggle')
|
||||
updateTotales()
|
||||
});
|
||||
|
||||
|
||||
@ -1336,7 +1304,6 @@ function fill_lp_bn(row, fromComparator=false){
|
||||
calcularPresupuesto_bn(false)
|
||||
}
|
||||
else{
|
||||
console.log(row);
|
||||
// Si viene de hacerlo a mano...
|
||||
$('#lp_bn_tiempo').val(row.tiempo_maquina)
|
||||
$('#lp_bn_numeroPliegos').val(isNaN(parseFloat(row.pliegos_libro)) ? "" : parseFloat(row.pliegos_libro).toFixed(2))
|
||||
@ -1344,19 +1311,21 @@ function fill_lp_bn(row, fromComparator=false){
|
||||
$('#lp_bn_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_bn_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_bn_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_bn_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "": parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_bn_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_bn_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_bn_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
$('#lp_bn_totalClicks').val(isNaN(parseFloat(row.precio_click_pedido)) ? "" : parseFloat(row.precio_click_pedido).toFixed(2))
|
||||
|
||||
$('#lp_bn_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_bn_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_bn_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_bn_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_bn_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_bn_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_bn_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -1577,19 +1546,14 @@ function fill_lp_color(row, fromComparator=false){
|
||||
$('#lp_color_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_color_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_color_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_color_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "": parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_color_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_color_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_color_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
$('#lp_color_totalClicks').val(isNaN(parseFloat(row.precio_click_pedido)) ? "" : parseFloat(row.precio_click_pedido).toFixed(2))
|
||||
|
||||
$('#lp_color_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_color_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_color_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_color_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_color_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_color_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_color_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -1809,6 +1773,7 @@ function fill_lp_bnhq(row, fromComparator=false){
|
||||
$('#lp_bnhq_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_bnhq_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_bnhq_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_bnhq_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "" : parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_bnhq_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_bnhq_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_bnhq_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
@ -1816,12 +1781,7 @@ function fill_lp_bnhq(row, fromComparator=false){
|
||||
|
||||
$('#lp_bnhq_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_bnhq_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_bnhq_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_bnhq_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_bnhq_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_bnhq_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_bnhq_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -2043,6 +2003,7 @@ function fill_lp_colorhq(row, fromComparator=false){
|
||||
$('#lp_colorhq_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_colorhq_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_colorhq_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_colorhq_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "": parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_colorhq_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_colorhq_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_colorhq_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
@ -2050,12 +2011,7 @@ function fill_lp_colorhq(row, fromComparator=false){
|
||||
|
||||
$('#lp_colorhq_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_colorhq_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_colorhq_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_colorhq_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_colorhq_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_colorhq_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_colorhq_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -2340,6 +2296,7 @@ function fill_lp_rot_bn(row, fromComparador=false){
|
||||
$('#lp_rot_bn_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_rot_bn_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_rot_bn_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_rot_bn_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "": parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_rot_bn_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_rot_bn_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_rot_bn_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
@ -2390,12 +2347,7 @@ function fill_lp_rot_bn(row, fromComparador=false){
|
||||
|
||||
$('#lp_rot_bn_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_rot_bn_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_rot_bn_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_rot_bn_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_rot_bn_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_rot_bn_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_rot_bn_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -2688,6 +2640,7 @@ function fill_lp_rot_color(row, fromComparador=false){
|
||||
$('#lp_rot_color_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_rot_color_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_rot_color_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_rot_color_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "": parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_rot_color_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_rot_color_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_rot_color_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
@ -2740,12 +2693,7 @@ function fill_lp_rot_color(row, fromComparador=false){
|
||||
|
||||
$('#lp_rot_color_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_rot_color_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_rot_color_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_rot_color_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_rot_color_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_rot_color_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_rot_color_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
|
||||
@ -2770,7 +2718,6 @@ var tableLineasPresupuesto = new DataTable('#tableLineasPresupuesto',{
|
||||
language: {
|
||||
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
async function set_lp_cubierta_gramaje(){
|
||||
@ -2990,7 +2937,6 @@ function fill_lp_cubierta(row, fromComparador=false){
|
||||
|
||||
}
|
||||
else{
|
||||
console.log(row);
|
||||
|
||||
var portadaObjeto = {
|
||||
anchoLibro:row.dimensiones_libro[0],
|
||||
@ -3009,6 +2955,7 @@ function fill_lp_cubierta(row, fromComparador=false){
|
||||
$('#lp_cubierta_precioPliego').val(isNaN(parseFloat(row.precios_pliegos)) ? "" : parseFloat(row.precios_pliegos).toFixed(6))
|
||||
$('#lp_cubierta_libro').val(isNaN(parseFloat(row.precio_libro)) ? "" : parseFloat(row.precio_libro).toFixed(2))
|
||||
$('#lp_cubierta_totalPapelPedido').val(isNaN(parseFloat(row.precio_pedido)) ? "" : parseFloat(row.precio_pedido).toFixed(2))
|
||||
$('#lp_cubierta_margenPapelPedido').val(isNaN(parseFloat(row.margen_papel_pedido)) ? "" : parseFloat(row.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_cubierta_lomo').val(isNaN(parseFloat(row.mano)) ? "" : parseFloat(row.mano).toFixed(2))
|
||||
$('#lp_cubierta_peso').val(isNaN(parseFloat(row.peso)) ? "" : parseFloat(row.peso).toFixed(2))
|
||||
$('#lp_cubierta_click').val(isNaN(parseFloat(row.precio_click)) ? "" : parseFloat(row.precio_click).toFixed(6))
|
||||
@ -3017,13 +2964,7 @@ function fill_lp_cubierta(row, fromComparador=false){
|
||||
$('#lp_cubierta_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id))) ? "" : parseInt(row.tarifa_impresion_id)
|
||||
|
||||
$('#lp_cubierta_tarifa_impresion_id').val(isNaN(parseInt(row.tarifa_impresion_id)) ? "" : parseInt(row.tarifa_impresion_id))
|
||||
|
||||
$('#lp_cubierta_maquina_ancho').val(isNaN(parseFloat(row.dimensiones_maquina[0])) ? "" : parseFloat(row.dimensiones_maquina[0]))
|
||||
$('#lp_cubierta_maquina_alto').val(isNaN(parseFloat(row.dimensiones_maquina[1])) ? "" : parseFloat(row.dimensiones_maquina[1]))
|
||||
$('#lp_cubierta_maquina_impresion_ancho').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[0])) ? "" : parseFloat(row.dimensiones_maquina_impresion[0]))
|
||||
$('#lp_cubierta_maquina_impresion_alto').val(isNaN(parseFloat(row.dimensiones_maquina_impresion[1])) ? "" : parseFloat(row.dimensiones_maquina_impresion[1]))
|
||||
$('#lp_cubierta_formas').val(isNaN(parseInt(row.num_formas.value)) ? "" : parseInt(row.num_formas.value))
|
||||
$('#lp_cubierta_formas_orientacion').val(row.num_formas.posicion_formas)
|
||||
updateTotales()
|
||||
}
|
||||
|
||||
$('.lp_cubierta').css('display', '')
|
||||
@ -3057,6 +2998,7 @@ function fill_lp_from_bbdd(){
|
||||
$('#lp_' + lp.tipo + '_precioPliego').val(isNaN(parseFloat(lp.pliegos_precio)) ? "" : parseFloat(lp.pliegos_precio).toFixed(6))
|
||||
$('#lp_' + lp.tipo + '_libro').val(isNaN(parseFloat(lp.libro)) ? "" : parseFloat(lp.libro).toFixed(2))
|
||||
$('#lp_' + lp.tipo + '_totalPapelPedido').val(isNaN(parseFloat(lp.total_papel_pedido)) ? "" : parseFloat(lp.total_papel_pedido).toFixed(2))
|
||||
$('#lp_' + lp.tipo + '_margenPapelPedido').val(isNaN(parseFloat(lp.margen_papel_pedido)) ? "" : parseFloat(lp.margen_papel_pedido).toFixed(2))
|
||||
$('#lp_' + lp.tipo + '_lomo').val(isNaN(parseFloat(lp.mano)) ? "" : parseFloat(lp.mano).toFixed(2))
|
||||
$('#lp_' + lp.tipo + '_peso').val(isNaN(parseFloat(lp.peso)) ? "" : parseFloat(lp.peso).toFixed(2))
|
||||
$('#lp_' + lp.tipo + '_click').val(isNaN(parseFloat(lp.precio_click)) ? "" : parseFloat(lp.precio_click).toFixed(6))
|
||||
@ -3153,6 +3095,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
||||
pliegos_precio: $('#lp_' + tipo_lp + '_precioPliego').val(),
|
||||
libro: $('#lp_' + tipo_lp + '_libro').val(),
|
||||
total_papel_pedido: $('#lp_' + tipo_lp + '_totalPapelPedido').val(),
|
||||
margen_papel_pedido: $('#lp_' + tipo_lp + '_margenPapelPedido').val(),
|
||||
mano: $('#lp_' + tipo_lp + '_lomo').val(),
|
||||
peso: $('#lp_' + tipo_lp + '_peso').val(),
|
||||
precio_click: $('#lp_' + tipo_lp + '_click').val(),
|
||||
|
||||
@ -257,7 +257,7 @@
|
||||
<h6><?= lang("Presupuestos.previewPapelGenerico") ?></h6>
|
||||
|
||||
<div id="shape-container">
|
||||
<div id="draw-maquina" class="draw-shapes"></div>
|
||||
<div id="pv_bnhq_shape" class="draw-shapes"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -333,7 +333,7 @@
|
||||
<h6><?= lang("Presupuestos.previewPapelGenerico") ?></h6>
|
||||
|
||||
<div id="shape-container">
|
||||
<div id="draw-maquina" class="draw-shapes"></div>
|
||||
<div id="pv_color_shape" class="draw-shapes"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -409,7 +409,7 @@
|
||||
<h6><?= lang("Presupuestos.previewPapelGenerico") ?></h6>
|
||||
|
||||
<div id="shape-container">
|
||||
<div id="draw-maquina" class="draw-shapes"></div>
|
||||
<div id="pv_colorhq_shape" class="draw-shapes"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -485,7 +485,7 @@
|
||||
<h6><?= lang("Presupuestos.previewPapelGenerico") ?></h6>
|
||||
|
||||
<div id="shape-container">
|
||||
<div id="draw-maquina" class="draw-shapes"></div>
|
||||
<div id="pv_rot_bn_shape" class="draw-shapes"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -562,7 +562,7 @@
|
||||
<h6><?= lang("Presupuestos.previewPapelGenerico") ?></h6>
|
||||
|
||||
<div id="shape-container">
|
||||
<div id="draw-maquina" class="draw-shapes"></div>
|
||||
<div id="pv_rot_color_shape" class="draw-shapes"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -754,19 +754,77 @@ $('#tab-pv-bn').on( "click", function() {
|
||||
|
||||
$('#tab-pv-bnhq').on( "click", function() {
|
||||
|
||||
let scV = 4;
|
||||
let scH = 2;
|
||||
|
||||
cubiertaObjeto = {
|
||||
idIndex: 'bnhq',
|
||||
anchoMaquina: 487,
|
||||
altoMaquina: 330,
|
||||
anchoImpresion: 475,
|
||||
altoImpresion: 310,
|
||||
anchoLibro: 170/scH,
|
||||
altoLibro: 240/scV,
|
||||
solapas:45,
|
||||
lomo:25,
|
||||
formas: scH * scV,
|
||||
formasH: scH,
|
||||
formasV: scV
|
||||
};
|
||||
|
||||
getObjetoLP('bnhq');
|
||||
previewInteriorPlana(cubiertaObjeto);
|
||||
|
||||
} );
|
||||
|
||||
$('#tab-pv-color').on( "click", function() {
|
||||
|
||||
let scV = 2;
|
||||
let scH = 2;
|
||||
|
||||
cubiertaObjeto = {
|
||||
idIndex: 'color',
|
||||
anchoMaquina: 487,
|
||||
altoMaquina: 330,
|
||||
anchoImpresion: 475,
|
||||
altoImpresion: 310,
|
||||
anchoLibro: 170/scH,
|
||||
altoLibro: 240/scV,
|
||||
solapas:45,
|
||||
lomo:25,
|
||||
formas: scH * scV,
|
||||
formasH: scH,
|
||||
formasV: scV
|
||||
};
|
||||
|
||||
getObjetoLP('color');
|
||||
previewInteriorPlana(cubiertaObjeto);
|
||||
|
||||
|
||||
} );
|
||||
|
||||
$('#tab-pv-colorhq').on( "click", function() {
|
||||
|
||||
let scV = 4;
|
||||
let scH = 2;
|
||||
|
||||
cubiertaObjeto = {
|
||||
idIndex: 'colorhq',
|
||||
anchoMaquina: 487,
|
||||
altoMaquina: 330,
|
||||
anchoImpresion: 475,
|
||||
altoImpresion: 310,
|
||||
anchoLibro: 170/scH,
|
||||
altoLibro: 240/scV,
|
||||
solapas:45,
|
||||
lomo:25,
|
||||
formas: scH * scV,
|
||||
formasH: scH,
|
||||
formasV: scV
|
||||
};
|
||||
|
||||
getObjetoLP('colorhq');
|
||||
previewInteriorPlana(cubiertaObjeto);
|
||||
|
||||
} );
|
||||
|
||||
|
||||
@ -52,6 +52,7 @@ function previewInteriorPlana(cubiertaObj) {
|
||||
cubiertaObj.anchoMaquina,
|
||||
cubiertaObj.altoMaquina);
|
||||
areaMaquinaPlana.stroke = 'black';
|
||||
areaMaquinaPlana.fill = '#E69F6E';
|
||||
areaMaquinaPlana.linewidth = 1;
|
||||
|
||||
var areaImpresionPlana = _pvPlana.makeRectangle(
|
||||
@ -60,6 +61,7 @@ function previewInteriorPlana(cubiertaObj) {
|
||||
cubiertaObj.anchoImpresion,
|
||||
cubiertaObj.altoImpresion);
|
||||
areaImpresionPlana.stroke = 'red';
|
||||
areaImpresionPlana.fill = '#FCEAF1';
|
||||
areaImpresionPlana.linewidth = 1;
|
||||
|
||||
var formas = [];
|
||||
|
||||
Reference in New Issue
Block a user