mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido todo lo necesario para la tinta
This commit is contained in:
@ -116,6 +116,7 @@ return [
|
|||||||
'cobCyan' => 'Cob. % Cyan',
|
'cobCyan' => 'Cob. % Cyan',
|
||||||
'cobMagenta' => 'Cob. % Magenta',
|
'cobMagenta' => 'Cob. % Magenta',
|
||||||
'cobAmarillo' => 'Cob. % Amarillo',
|
'cobAmarillo' => 'Cob. % Amarillo',
|
||||||
|
'cobCG' => 'Cob. % CG',
|
||||||
'gotaNegro' => 'Gota negro',
|
'gotaNegro' => 'Gota negro',
|
||||||
'gotaColor' => 'Gota color',
|
'gotaColor' => 'Gota color',
|
||||||
'totalLinea' => 'TOTAL LÍNEA',
|
'totalLinea' => 'TOTAL LÍNEA',
|
||||||
@ -127,6 +128,7 @@ return [
|
|||||||
'gotasCyan' => 'Nº gotas cyan',
|
'gotasCyan' => 'Nº gotas cyan',
|
||||||
'gotasMagenta' => 'Nº gotas magenta',
|
'gotasMagenta' => 'Nº gotas magenta',
|
||||||
'gotasAmarillo' => 'Nº gotas amarillo',
|
'gotasAmarillo' => 'Nº gotas amarillo',
|
||||||
|
'gotasCG' => 'Nº gotas CG',
|
||||||
'precioPagNegro' => 'Precio pág. Negro',
|
'precioPagNegro' => 'Precio pág. Negro',
|
||||||
'precioPagColor' => 'Precio pág. Color',
|
'precioPagColor' => 'Precio pág. Color',
|
||||||
'factorAltura' => 'Factor altura',
|
'factorAltura' => 'Factor altura',
|
||||||
@ -139,6 +141,7 @@ return [
|
|||||||
'gTintaCyan' => 'G. tinta Cyan',
|
'gTintaCyan' => 'G. tinta Cyan',
|
||||||
'gTintaMagenta' => 'G. tinta Magenta',
|
'gTintaMagenta' => 'G. tinta Magenta',
|
||||||
'gTintaAmarillo' => 'G. tinta Amarillo',
|
'gTintaAmarillo' => 'G. tinta Amarillo',
|
||||||
|
'gTintaCG' => 'G. tinta CG',
|
||||||
'clicksPedido' => 'Clicks Pedido',
|
'clicksPedido' => 'Clicks Pedido',
|
||||||
'totalClicks' => 'Total Clicks',
|
'totalClicks' => 'Total Clicks',
|
||||||
'totalTinta' => 'Total Tinta',
|
'totalTinta' => 'Total Tinta',
|
||||||
@ -151,6 +154,7 @@ return [
|
|||||||
'gTintaCyanPed' => 'G.T. Cyan Ped.',
|
'gTintaCyanPed' => 'G.T. Cyan Ped.',
|
||||||
'gTintaMagentaPed' => 'G.T. Magenta Ped.',
|
'gTintaMagentaPed' => 'G.T. Magenta Ped.',
|
||||||
'gTintaAmarilloPed' => 'G.T. Amarillo Ped.',
|
'gTintaAmarilloPed' => 'G.T. Amarillo Ped.',
|
||||||
|
'gTintaCGPed' => 'G.T. CG Ped.',
|
||||||
|
|
||||||
'addLineaPresupuesto' => 'Añadir linea...',
|
'addLineaPresupuesto' => 'Añadir linea...',
|
||||||
|
|
||||||
|
|||||||
@ -380,7 +380,7 @@ class MaquinaModel extends \App\Models\GoBaseModel
|
|||||||
"t1.id AS maquina_id, t1.nombre AS maquina, t1.ancho_impresion AS ancho_impresion,
|
"t1.id AS maquina_id, t1.nombre AS maquina, t1.ancho_impresion AS ancho_impresion,
|
||||||
t1.alto_impresion AS alto_impresion, t1.ancho AS ancho, t1.alto AS alto,
|
t1.alto_impresion AS alto_impresion, t1.ancho AS ancho, t1.alto AS alto,
|
||||||
t1.is_rotativa AS is_rotativa, t1.is_inkjet AS is_inkjet, t1.alto_click AS alto_click, t1.velocidad AS velocidad,
|
t1.is_rotativa AS is_rotativa, t1.is_inkjet AS is_inkjet, t1.alto_click AS alto_click, t1.velocidad AS velocidad,
|
||||||
t1.precio_tinta_negro AS precio_tinta_negro, t1.precio_tinta_color AS precio_tinta_color,
|
t1.precio_tinta_negro AS precio_tinta_negro, t1.precio_tinta_color AS precio_tinta_color, t1.precio_tinta_cg AS precio_tinta_cg,
|
||||||
t1.velocidad_corte AS velocidad_corte, t1.precio_hora_corte AS precio_hora_corte,
|
t1.velocidad_corte AS velocidad_corte, t1.precio_hora_corte AS precio_hora_corte,
|
||||||
t1.forzar_num_formas_horizontales_cubierta AS forzar_num_formas_horizontales_cubierta,
|
t1.forzar_num_formas_horizontales_cubierta AS forzar_num_formas_horizontales_cubierta,
|
||||||
t1.forzar_num_formas_verticales_cubierta AS forzar_num_formas_verticales_cubierta"
|
t1.forzar_num_formas_verticales_cubierta AS forzar_num_formas_verticales_cubierta"
|
||||||
|
|||||||
@ -289,7 +289,8 @@ class PresupuestoService extends BaseService
|
|||||||
// Esta calculado para color
|
// Esta calculado para color
|
||||||
if($maquina->is_inkjet){
|
if($maquina->is_inkjet){
|
||||||
$data['num_gotas_cg'] = round($data['superficie'] * $data['resolucion'] * $data['resolucion'] * ($parametros->rotativa_cg / 100.0), 0);
|
$data['num_gotas_cg'] = round($data['superficie'] * $data['resolucion'] * $data['resolucion'] * ($parametros->rotativa_cg / 100.0), 0);
|
||||||
$data['peso_gotas_cg'] = round((($data['num_gotas_cg'] * $parametros->rotativa_gota_color * $data['pulgada']) / (17.65 / 20.0)) * $pag_color * 1000, 6);
|
$data['peso_gotas_cg'] = round((($data['num_gotas_cg'] * $parametros->rotativa_gota_color * $data['pulgada']) / (17.65 / 20.0)) * $pag_color * 1000, 6) +
|
||||||
|
round((($data['num_gotas_cg'] * $parametros->rotativa_gota_negro * $data['pulgada']) / (17.65 / 20.0)) * $pag_negro * 1000, 6);
|
||||||
$data['peso_gotas_cg_pedido'] = round($data['peso_gotas_cg'], 2) * ($datosPedido->tirada + $datosPedido->merma);
|
$data['peso_gotas_cg_pedido'] = round($data['peso_gotas_cg'], 2) * ($datosPedido->tirada + $datosPedido->merma);
|
||||||
|
|
||||||
$data['precio_tinta'] += round(($data['peso_gotas_cg_pedido'] / 1000.0) * $maquina->precio_tinta_cg, 2);
|
$data['precio_tinta'] += round(($data['peso_gotas_cg_pedido'] / 1000.0) * $maquina->precio_tinta_cg, 2);
|
||||||
|
|||||||
@ -161,10 +161,10 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.numPagColor') ?>' +
|
'<?= lang('Presupuestos.numPagColor') ?>' +
|
||||||
'<input type="text" id="' + d.row_id +'_numPagColor" name="' + d.row_id +'_numPagColor" class="lp-cell lp-input' + (d.row_id.includes('color')?'" ':' lp-cell-disabled" readonly ') + ' value="' + d.numPagColor +'">' +
|
'<input type="text" id="' + d.row_id +'_numPagColor" name="' + d.row_id +'_numPagColor" class="lp-cell lp-input' + (d.row_id.includes('color')?'" ':' lp-cell-disabled" readonly ') + ' value="' + d.numPagColor +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
((d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.saturacion') ?>' +
|
'<?= lang('Presupuestos.saturacion') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_saturacion" name="' + d.row_id +'_saturacion" class="lp-cell lp-input lp-cell-disabled" readonly value="100">' +
|
'<input readonly type="text" id="' + d.row_id +'_saturacion" name="' + d.row_id +'_saturacion" class="lp-cell lp-input lp-cell-disabled" readonly value="100">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.cobNegro') ?>' +
|
'<?= lang('Presupuestos.cobNegro') ?>' +
|
||||||
'<input type="text" id="' + d.row_id +'_cobNegro" name="' + d.row_id +'_cobNegro" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.cobNegro +'">' +
|
'<input type="text" id="' + d.row_id +'_cobNegro" name="' + d.row_id +'_cobNegro" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.cobNegro +'">' +
|
||||||
@ -181,6 +181,11 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.cobAmarillo') ?>' +
|
'<?= lang('Presupuestos.cobAmarillo') ?>' +
|
||||||
'<input type="text" id="' + d.row_id +'_cobAmarillo" name="' + d.row_id +'_cobAmarillo" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.cobAmarillo +'">' +
|
'<input type="text" id="' + d.row_id +'_cobAmarillo" name="' + d.row_id +'_cobAmarillo" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.cobAmarillo +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
((!d.row_id.includes('rot'))?
|
||||||
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.cobCG') ?>' +
|
||||||
|
'<input type="text" id="' + d.row_id +'_cobCG" name="' + d.row_id +'_cobCG" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.cobCG +'">' +
|
||||||
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.gotaNegro') ?>' +
|
'<?= lang('Presupuestos.gotaNegro') ?>' +
|
||||||
'<input type="text" id="' + d.row_id +'_gotaNegro" name="' + d.row_id +'_gotaNegro" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.gotaNegro +'">' +
|
'<input type="text" id="' + d.row_id +'_gotaNegro" name="' + d.row_id +'_gotaNegro" class="lp-cell lp-input ' + d.row_class +'-input ' + d.row_class +'-tipologia" value="' + d.gotaNegro +'">' +
|
||||||
@ -205,18 +210,28 @@ function format(d) {
|
|||||||
'<td></td>'+
|
'<td></td>'+
|
||||||
'<td colspan="10">'+
|
'<td colspan="10">'+
|
||||||
'<div class="row flex-grow-1 d-flex align-items-end">' +
|
'<div class="row flex-grow-1 d-flex align-items-end">' +
|
||||||
|
((!d.row_id.includes('rot'))?
|
||||||
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.factorAltura') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_factorAltura" name="' + d.row_id +'_factorAltura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAltura +'">' +
|
||||||
|
'</div>' +
|
||||||
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.factorAnchura') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_factorAnchura" name="' + d.row_id +'_factorAnchura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAnchura +'">' +
|
||||||
|
'</div>':'') +
|
||||||
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">': '<div class="col-md-12 col-lg-1" style="display:none;">') +
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">': '<div class="col-md-12 col-lg-1" style="display:none;">') +
|
||||||
'<?= lang('Presupuestos.metrosMinuto') ?>' +
|
'<?= lang('Presupuestos.metrosMinuto') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_metrosMinuto" name="' + d.row_id +'_metrosMinuto" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.metrosMinuto +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_metrosMinuto" name="' + d.row_id +'_metrosMinuto" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.metrosMinuto +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
|
||||||
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.resolucion') ?>' +
|
'<?= lang('Presupuestos.resolucion') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_resolucion" name="' + d.row_id +'_resolucion" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.resolucion +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_resolucion" name="' + d.row_id +'_resolucion" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.resolucion +'">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.areaPaginas') ?>' +
|
'<?= lang('Presupuestos.areaPaginas') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_areaPaginas" name="' + d.row_id +'_areaPaginas" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.areaPaginas +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_areaPaginas" name="' + d.row_id +'_areaPaginas" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.areaPaginas +'">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.gotasNegro') ?>' +
|
'<?= lang('Presupuestos.gotasNegro') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_gotasNegro" name="' + d.row_id +'_gotasNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gotasNegro +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_gotasNegro" name="' + d.row_id +'_gotasNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gotasNegro +'">' +
|
||||||
@ -233,6 +248,10 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.gotasAmarillo') ?>' +
|
'<?= lang('Presupuestos.gotasAmarillo') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_gotasAmarillo" name="' + d.row_id +'_gotasAmarillo" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gotasAmarillo +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_gotasAmarillo" name="' + d.row_id +'_gotasAmarillo" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gotasAmarillo +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
(!(d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.gotasCG') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_gotasCG" name="' + d.row_id +'_gotasCG" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gotasCG +'">' +
|
||||||
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.precioPagNegro') ?>' +
|
'<?= lang('Presupuestos.precioPagNegro') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_precioPagNegro" name="' + d.row_id +'_precioPagNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.precioPagNegro +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_precioPagNegro" name="' + d.row_id +'_precioPagNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.precioPagNegro +'">' +
|
||||||
@ -241,6 +260,7 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.precioPagColor') ?>' +
|
'<?= lang('Presupuestos.precioPagColor') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_precioPagColor" name="' + d.row_id +'_precioPagColor" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.precioPagColor +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_precioPagColor" name="' + d.row_id +'_precioPagColor" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.precioPagColor +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
(d.row_id.includes('rot')?
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.factorAltura') ?>' +
|
'<?= lang('Presupuestos.factorAltura') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_factorAltura" name="' + d.row_id +'_factorAltura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAltura +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_factorAltura" name="' + d.row_id +'_factorAltura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAltura +'">' +
|
||||||
@ -248,11 +268,11 @@ function format(d) {
|
|||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.factorAnchura') ?>' +
|
'<?= lang('Presupuestos.factorAnchura') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_factorAnchura" name="' + d.row_id +'_factorAnchura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAnchura +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_factorAnchura" name="' + d.row_id +'_factorAnchura" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.factorAnchura +'">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.paginasPliego') ?>' +
|
'<?= lang('Presupuestos.paginasPliego') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_paginasPliego" name="' + d.row_id +'_paginasPliego" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.paginasPliego +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_paginasPliego" name="' + d.row_id +'_paginasPliego" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.paginasPliego +'">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'</tr>' +
|
'</tr>' +
|
||||||
@ -269,10 +289,18 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.metrosPapelTotal') ?>' +
|
'<?= lang('Presupuestos.metrosPapelTotal') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_metrosPapelTotal" name="' + d.row_id +'_metrosPapelTotal" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.metrosPapelTotal +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_metrosPapelTotal" name="' + d.row_id +'_metrosPapelTotal" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.metrosPapelTotal +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.clicksLibro') ?>' +
|
'<?= lang('Presupuestos.clicksLibro') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_clicksLibro" name="' + d.row_id +'_clicksLibro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.clicksLibro +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_clicksLibro" name="' + d.row_id +'_clicksLibro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.clicksLibro +'">' +
|
||||||
'</div>' +
|
'</div>':'') +
|
||||||
|
((!d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.saturacion') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_saturacion" name="' + d.row_id +'_saturacion" class="lp-cell lp-input lp-cell-disabled" readonly value="100">' +
|
||||||
|
'</div>':'') +
|
||||||
|
((!d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.paginasPliego') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_paginasPliego" name="' + d.row_id +'_paginasPliego" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.paginasPliego +'">' +
|
||||||
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.gTintaNegro') ?>' +
|
'<?= lang('Presupuestos.gTintaNegro') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_gTintaNegro" name="' + d.row_id +'_gTintaNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaNegro +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_gTintaNegro" name="' + d.row_id +'_gTintaNegro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaNegro +'">' +
|
||||||
@ -289,6 +317,14 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.gTintaAmarillo') ?>' +
|
'<?= lang('Presupuestos.gTintaAmarillo') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_gTintaAmarillo" name="' + d.row_id +'_gTintaAmarillo" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaAmarillo +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_gTintaAmarillo" name="' + d.row_id +'_gTintaAmarillo" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaAmarillo +'">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
(!(d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.gTintaCG') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_gTintaCG" name="' + d.row_id +'_gTintaCG" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaCG +'">' +
|
||||||
|
'</div>':'') +
|
||||||
|
((!d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.clicksLibro') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_clicksLibro" name="' + d.row_id +'_clicksLibro" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.clicksLibro +'">' +
|
||||||
|
'</div>':'') +
|
||||||
'<div class="col-md-12 col-lg-1">' +
|
'<div class="col-md-12 col-lg-1">' +
|
||||||
'<?= lang('Presupuestos.clicksPedido') ?>' +
|
'<?= lang('Presupuestos.clicksPedido') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_clicksPedido" name="' + d.row_id +'_clicksPedido" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.clicksPedido +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_clicksPedido" name="' + d.row_id +'_clicksPedido" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.clicksPedido +'">' +
|
||||||
@ -317,6 +353,14 @@ function format(d) {
|
|||||||
'<td></td>'+
|
'<td></td>'+
|
||||||
'<td colspan="10">'+
|
'<td colspan="10">'+
|
||||||
'<div class="row flex-grow-1 d-flex align-items-end" >' +
|
'<div class="row flex-grow-1 d-flex align-items-end" >' +
|
||||||
|
((!d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.resolucion') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_resolucion" name="' + d.row_id +'_resolucion" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.resolucion +'">' +
|
||||||
|
'</div>':'') +
|
||||||
|
((!d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.areaPaginas') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_areaPaginas" name="' + d.row_id +'_areaPaginas" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.areaPaginas +'">' +
|
||||||
|
'</div>':'') +
|
||||||
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">': '<div class="col-md-12 col-lg-1" style="display:none;">') +
|
(d.row_id.includes('rot')?'<div class="col-md-12 col-lg-1">': '<div class="col-md-12 col-lg-1" style="display:none;">') +
|
||||||
'<?= lang('Presupuestos.velocidadCorte') ?>' +
|
'<?= lang('Presupuestos.velocidadCorte') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_velocidadCorte" name="' + d.row_id +'_velocidadCorte" class="lp-cell lp-input lp-cell-disabled" readonly value="' + d.velocidadCorte +'">' +
|
'<input readonly type="text" id="' + d.row_id +'_velocidadCorte" name="' + d.row_id +'_velocidadCorte" class="lp-cell lp-input lp-cell-disabled" readonly value="' + d.velocidadCorte +'">' +
|
||||||
@ -345,6 +389,10 @@ function format(d) {
|
|||||||
'<?= lang('Presupuestos.gTintaAmarilloPed') ?>' +
|
'<?= lang('Presupuestos.gTintaAmarilloPed') ?>' +
|
||||||
'<input readonly type="text" id="' + d.row_id +'_gTintaAmarilloPed" name="' + d.row_id +'_gTintaAmarilloPed" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaAmarilloPed +'">'+
|
'<input readonly type="text" id="' + d.row_id +'_gTintaAmarilloPed" name="' + d.row_id +'_gTintaAmarilloPed" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaAmarilloPed +'">'+
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
(!(d.row_id.includes('rot'))?'<div class="col-md-12 col-lg-1">' +
|
||||||
|
'<?= lang('Presupuestos.gTintaCGPed') ?>' +
|
||||||
|
'<input readonly type="text" id="' + d.row_id +'_gTintaCGPed" name="' + d.row_id +'_gTintaCGPed" class="lp-cell lp-cell-disabled lp-input ' + d.row_class +'-input" readonly value="' + d.gTintaCGPed +'">'+
|
||||||
|
'</div>':'') +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'</tr>'
|
'</tr>'
|
||||||
@ -743,6 +791,13 @@ function processRowData(row, rowId, rowClass){
|
|||||||
data.gTintaMagentaPed = isNaN(parseFloat(row.peso_gotas_magenta_pedido)) ? "" : parseFloat(row.peso_gotas_magenta_pedido).toFixed(2)
|
data.gTintaMagentaPed = isNaN(parseFloat(row.peso_gotas_magenta_pedido)) ? "" : parseFloat(row.peso_gotas_magenta_pedido).toFixed(2)
|
||||||
data.gTintaAmarilloPed = isNaN(parseFloat(row.peso_gotas_amarillo_pedido)) ? "" : parseFloat(row.peso_gotas_amarillo_pedido).toFixed(2)
|
data.gTintaAmarilloPed = isNaN(parseFloat(row.peso_gotas_amarillo_pedido)) ? "" : parseFloat(row.peso_gotas_amarillo_pedido).toFixed(2)
|
||||||
|
|
||||||
|
if(!rowId.includes('rot')){
|
||||||
|
data.cobCG = isNaN(parseFloat(row.datosTipologias.cg)) ? "" : parseFloat(row.datosTipologias.cg).toFixed(0)
|
||||||
|
data.gotasCG = isNaN(parseFloat(row.num_gotas_cg)) ? "" : parseFloat(row.num_gotas_cg).toFixed(0)
|
||||||
|
data.gTintaCG = isNaN(parseFloat(row.peso_gotas_cg)) ? "" : parseFloat(row.peso_gotas_cg).toFixed(2)
|
||||||
|
data.gTintaCGPed = isNaN(parseFloat(row.peso_gotas_cg_pedido)) ? "" : parseFloat(row.peso_gotas_cg_pedido).toFixed(2)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
data.alto_click = row.alto_click
|
data.alto_click = row.alto_click
|
||||||
}
|
}
|
||||||
@ -3352,6 +3407,7 @@ function fill_lp_from_bbdd(){
|
|||||||
cyan: lp.rotativa_cyan,
|
cyan: lp.rotativa_cyan,
|
||||||
magenta: lp.rotativa_magenta,
|
magenta: lp.rotativa_magenta,
|
||||||
amarillo: lp.rotativa_amarillo,
|
amarillo: lp.rotativa_amarillo,
|
||||||
|
cg: lp.rotativa_cg,
|
||||||
gota_negro: lp.rotativa_gota_negro,
|
gota_negro: lp.rotativa_gota_negro,
|
||||||
gota_color: lp.rotativa_gota_color,
|
gota_color: lp.rotativa_gota_color,
|
||||||
}
|
}
|
||||||
@ -3368,6 +3424,7 @@ function fill_lp_from_bbdd(){
|
|||||||
lp['num_gotas_cyan'] = lp['rotativa_num_gotas_cyan']
|
lp['num_gotas_cyan'] = lp['rotativa_num_gotas_cyan']
|
||||||
lp['num_gotas_magenta'] = lp['rotativa_num_gotas_magenta']
|
lp['num_gotas_magenta'] = lp['rotativa_num_gotas_magenta']
|
||||||
lp['num_gotas_amarillo'] = lp['rotativa_num_gotas_amarillo']
|
lp['num_gotas_amarillo'] = lp['rotativa_num_gotas_amarillo']
|
||||||
|
lp['num_gotas_cg'] = lp['rotativa_num_gotas_cg']
|
||||||
|
|
||||||
lp['precio_pagina_negro'] = lp['rotativa_precio_pag_negro']
|
lp['precio_pagina_negro'] = lp['rotativa_precio_pag_negro']
|
||||||
lp['precio_pagina_color'] = lp['rotativa_precio_pag_color']
|
lp['precio_pagina_color'] = lp['rotativa_precio_pag_color']
|
||||||
@ -3380,6 +3437,7 @@ function fill_lp_from_bbdd(){
|
|||||||
lp['peso_gotas_cyan'] = lp['rotativa_peso_gotas_cyan']
|
lp['peso_gotas_cyan'] = lp['rotativa_peso_gotas_cyan']
|
||||||
lp['peso_gotas_magenta'] = lp['rotativa_peso_gotas_magenta']
|
lp['peso_gotas_magenta'] = lp['rotativa_peso_gotas_magenta']
|
||||||
lp['peso_gotas_amarillo'] = lp['rotativa_peso_gotas_amarillo']
|
lp['peso_gotas_amarillo'] = lp['rotativa_peso_gotas_amarillo']
|
||||||
|
lp['peso_gotas_cg'] = lp['rotativa_peso_gotas_cg']
|
||||||
lp['clicks_pedido'] = lp['rotativa_clicks_total']
|
lp['clicks_pedido'] = lp['rotativa_clicks_total']
|
||||||
lp['precio_click_pedido'] = lp['precio_click_pedido']
|
lp['precio_click_pedido'] = lp['precio_click_pedido']
|
||||||
lp['precio_tinta'] = lp['rotativa_precio_tinta']
|
lp['precio_tinta'] = lp['rotativa_precio_tinta']
|
||||||
@ -3389,6 +3447,7 @@ function fill_lp_from_bbdd(){
|
|||||||
lp['peso_gotas_cyan_pedido'] = lp['rotativa_peso_gotas_cyan_pedido']
|
lp['peso_gotas_cyan_pedido'] = lp['rotativa_peso_gotas_cyan_pedido']
|
||||||
lp['peso_gotas_magenta_pedido'] = lp['rotativa_peso_gotas_magenta_pedido']
|
lp['peso_gotas_magenta_pedido'] = lp['rotativa_peso_gotas_magenta_pedido']
|
||||||
lp['peso_gotas_amarillo_pedido'] = lp['rotativa_peso_gotas_amarillo_pedido']
|
lp['peso_gotas_amarillo_pedido'] = lp['rotativa_peso_gotas_amarillo_pedido']
|
||||||
|
lp['peso_gotas_cg_pedido'] = lp['rotativa_peso_gotas_cg_pedido']
|
||||||
|
|
||||||
}
|
}
|
||||||
if(lp.tipo.includes('rot')){
|
if(lp.tipo.includes('rot')){
|
||||||
@ -3509,6 +3568,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
linea_data.rotativa_cyan = rowData.cobCyan
|
linea_data.rotativa_cyan = rowData.cobCyan
|
||||||
linea_data.rotativa_magenta = rowData.cobMagenta
|
linea_data.rotativa_magenta = rowData.cobMagenta
|
||||||
linea_data.rotativa_amarillo = rowData.cobAmarillo
|
linea_data.rotativa_amarillo = rowData.cobAmarillo
|
||||||
|
linea_data.rotativa_cg = rowData.cobCG
|
||||||
linea_data.rotativa_gota_negro = rowData.gotaNegro
|
linea_data.rotativa_gota_negro = rowData.gotaNegro
|
||||||
linea_data.rotativa_gota_color = rowData.gotaColor
|
linea_data.rotativa_gota_color = rowData.gotaColor
|
||||||
|
|
||||||
@ -3520,6 +3580,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
linea_data.rotativa_num_gotas_cyan = rowData.gotasCyan
|
linea_data.rotativa_num_gotas_cyan = rowData.gotasCyan
|
||||||
linea_data.rotativa_num_gotas_magenta = rowData.gotasMagenta
|
linea_data.rotativa_num_gotas_magenta = rowData.gotasMagenta
|
||||||
linea_data.rotativa_num_gotas_amarillo = rowData.gotasAmarillo
|
linea_data.rotativa_num_gotas_amarillo = rowData.gotasAmarillo
|
||||||
|
linea_data.rotativa_num_gotas_cg = rowData.gotasCG
|
||||||
|
|
||||||
linea_data.rotativa_precio_pag_negro = rowData.precioPagNegro
|
linea_data.rotativa_precio_pag_negro = rowData.precioPagNegro
|
||||||
linea_data.rotativa_precio_pag_color = rowData.precioPagColor
|
linea_data.rotativa_precio_pag_color = rowData.precioPagColor
|
||||||
@ -3532,6 +3593,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
linea_data.rotativa_peso_gotas_cyan = rowData.gTintaCyan
|
linea_data.rotativa_peso_gotas_cyan = rowData.gTintaCyan
|
||||||
linea_data.rotativa_peso_gotas_magenta = rowData.gTintaMagenta
|
linea_data.rotativa_peso_gotas_magenta = rowData.gTintaMagenta
|
||||||
linea_data.rotativa_peso_gotas_amarillo = rowData.gTintaAmarillo
|
linea_data.rotativa_peso_gotas_amarillo = rowData.gTintaAmarillo
|
||||||
|
linea_data.rotativa_peso_gotas_cg = rowData.gTintaCG
|
||||||
linea_data.rotativa_clicks_total = rowData.clicksPedido
|
linea_data.rotativa_clicks_total = rowData.clicksPedido
|
||||||
linea_data.precio_click_pedido = rowData.totalClicksPedido
|
linea_data.precio_click_pedido = rowData.totalClicksPedido
|
||||||
linea_data.rotativa_precio_tinta = rowData.totalTinta
|
linea_data.rotativa_precio_tinta = rowData.totalTinta
|
||||||
@ -3541,6 +3603,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
linea_data.rotativa_peso_gotas_cyan_pedido = rowData.gTintaCyanPed
|
linea_data.rotativa_peso_gotas_cyan_pedido = rowData.gTintaCyanPed
|
||||||
linea_data.rotativa_peso_gotas_magenta_pedido = rowData.gTintaMagentaPed
|
linea_data.rotativa_peso_gotas_magenta_pedido = rowData.gTintaMagentaPed
|
||||||
linea_data.rotativa_peso_gotas_amarillo_pedido = rowData.gTintaAmarilloPed
|
linea_data.rotativa_peso_gotas_amarillo_pedido = rowData.gTintaAmarilloPed
|
||||||
|
linea_data.rotativa_peso_gotas_cg_pedido = rowData.gTintaCGPed
|
||||||
|
|
||||||
}
|
}
|
||||||
if(linea_data.tipo.includes('rot')){
|
if(linea_data.tipo.includes('rot')){
|
||||||
|
|||||||
Reference in New Issue
Block a user