mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadir lineas presupuesto desde comp
This commit is contained in:
4
ci4/.env
4
ci4/.env
@ -22,8 +22,8 @@ CI_ENVIRONMENT = development
|
|||||||
# APP
|
# APP
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
# app.baseURL = 'https://sk-jjo.imnavajas.es'
|
app.baseURL = 'https://sk-jjo.imnavajas.es'
|
||||||
app.baseURL = 'https://sk-imn.imnavajas.es'
|
# app.baseURL = 'https://sk-imn.imnavajas.es'
|
||||||
# app.baseURL = "http://safekat.test/"
|
# app.baseURL = "http://safekat.test/"
|
||||||
# app.forceGlobalSecureRequests = false
|
# app.forceGlobalSecureRequests = false
|
||||||
|
|
||||||
|
|||||||
@ -144,13 +144,16 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
|
|
||||||
endif; // ($requestMethod === 'post')
|
endif; // ($requestMethod === 'post')
|
||||||
|
|
||||||
|
$this->viewData['tipo_impresion_id'] = 4; // Cosido tapa blanda JJO
|
||||||
$this->viewData['presupuestoEntity'] = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
|
$this->viewData['presupuestoEntity'] = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
|
||||||
|
$this->viewData['isCosido'] = (new TipoPresupuestoModel())->get_isCosido($this->viewData['tipo_impresion_id']);
|
||||||
|
|
||||||
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null);
|
$this->viewData['clienteList'] = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null);
|
||||||
$this->viewData['incReiList'] = array('incidencia' => lang('Presupuestos.incidencia'), 'reimpresion' => lang('Presupuestos.reimpresion'), 'sin_cargo' => lang('Presupuestos.sinCargo'));
|
$this->viewData['incReiList'] = array('incidencia' => lang('Presupuestos.incidencia'), 'reimpresion' => lang('Presupuestos.reimpresion'), 'sin_cargo' => lang('Presupuestos.sinCargo'));
|
||||||
$this->viewData['paisList'] = $this->getPaisListItems();
|
$this->viewData['paisList'] = $this->getPaisListItems();
|
||||||
$this->viewData['papelFormatoList'] = $this->getPapelFormatoListItems($presupuestoEntity->papel_formato_id ?? null);
|
$this->viewData['papelFormatoList'] = $this->getPapelFormatoListItems($presupuestoEntity->papel_formato_id ?? null);
|
||||||
|
|
||||||
$this->viewData['tipo_impresion_id'] = 4; // Cosido tapa blanda JJO
|
|
||||||
|
|
||||||
$this->viewData['formAction'] = route_to('createCosidotapablanda');
|
$this->viewData['formAction'] = route_to('createCosidotapablanda');
|
||||||
|
|
||||||
@ -648,11 +651,15 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$linea['fields']['precio_hora'] = $precio_hora;
|
$linea['fields']['tipo_maquina'] = $maquina->is_tinta?'inkjet':'toner';
|
||||||
|
$linea['fields']['precio_hora'] = $precio_hora*$margen_precio_hora/100.0;
|
||||||
$linea['fields']['precio_hora_margen'] = $margen_precio_hora;
|
$linea['fields']['precio_hora_margen'] = $margen_precio_hora;
|
||||||
$linea['fields']['horas_maquina'] = $tiempo;
|
$linea['fields']['horas_maquina'] = $tiempo;
|
||||||
$linea['fields']['precio_impresion_horas'] = $precio_hora*$tiempo*1.0;
|
$linea['fields']['precio_impresion_horas'] = $precio_hora*$tiempo*1.0;
|
||||||
$linea['fields']['margen_impresion_horas'] = $precio_hora*$tiempo*1.0*$margen_precio_hora/100.0;
|
$linea['fields']['margen_impresion_horas'] = $precio_hora*$tiempo*1.0*$margen_precio_hora/100.0;
|
||||||
|
|
||||||
|
$linea['fields']['total_impresion'] = $linea['fields']['precio_pedido'] + // papel
|
||||||
|
$linea['fields']['precio_impresion_horas']; // impresion
|
||||||
|
|
||||||
array_push($lineas, $linea);
|
array_push($lineas, $linea);
|
||||||
}
|
}
|
||||||
@ -766,6 +773,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
$linea['fields']['maquina'] = $maquina->maquina;
|
$linea['fields']['maquina'] = $maquina->maquina;
|
||||||
$linea['fields']['maquina_id'] = $maquina->maquina_id;
|
$linea['fields']['maquina_id'] = $maquina->maquina_id;
|
||||||
$linea['fields']['maquina_velocidad'] = $maquina->velocidad;
|
$linea['fields']['maquina_velocidad'] = $maquina->velocidad;
|
||||||
|
$linea['fields']['tipo_maquina'] = 'inkjet';
|
||||||
$linea['fields']['papel_impresion'] = $papel->nombre;
|
$linea['fields']['papel_impresion'] = $papel->nombre;
|
||||||
$linea['fields']['papel_impresion_id'] = $papel->id;
|
$linea['fields']['papel_impresion_id'] = $papel->id;
|
||||||
$linea['fields']['paginas'] = $datosPedido->paginas;
|
$linea['fields']['paginas'] = $datosPedido->paginas;
|
||||||
@ -808,7 +816,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$linea['fields']['precio_hora'] = $precio_hora;
|
$linea['fields']['precio_hora'] = $precio_hora*$margen_precio_hora/100.0;
|
||||||
$linea['fields']['precio_hora_margen'] = $margen_precio_hora;
|
$linea['fields']['precio_hora_margen'] = $margen_precio_hora;
|
||||||
$linea['fields']['horas_maquina'] = $tiempo;
|
$linea['fields']['horas_maquina'] = $tiempo;
|
||||||
$linea['fields']['precio_impresion_horas'] = $precio_hora*$tiempo*1.0;
|
$linea['fields']['precio_impresion_horas'] = $precio_hora*$tiempo*1.0;
|
||||||
|
|||||||
@ -76,12 +76,14 @@ return [
|
|||||||
'click' => 'Click',
|
'click' => 'Click',
|
||||||
'totalClicks' => 'Total clicks',
|
'totalClicks' => 'Total clicks',
|
||||||
'horas' => 'Machine hours',
|
'horas' => 'Machine hours',
|
||||||
|
'precioHora' => 'Price hour',
|
||||||
'precioImpresion' => 'Print price',
|
'precioImpresion' => 'Print price',
|
||||||
'precioPagNegro' => 'Pages black price',
|
'precioPagNegro' => 'Pages black price',
|
||||||
'precioPagColor' => 'Pages color price',
|
'precioPagColor' => 'Pages color price',
|
||||||
'totalTinta' => 'Total ink',
|
'totalTinta' => 'Total ink',
|
||||||
'totalCorte' => 'Total cut',
|
'totalCorte' => 'Total cut',
|
||||||
'total' => 'Total',
|
'total' => 'Total',
|
||||||
|
'totalLinea' => 'Row Total',
|
||||||
'aFavorFibra' => 'In fiber direction',
|
'aFavorFibra' => 'In fiber direction',
|
||||||
'cubierta' => 'Cover',
|
'cubierta' => 'Cover',
|
||||||
'sobrecubierta' => 'Dust jacket',
|
'sobrecubierta' => 'Dust jacket',
|
||||||
|
|||||||
@ -69,18 +69,20 @@ return [
|
|||||||
'pliegosPedido' => 'Pliegos pedido',
|
'pliegosPedido' => 'Pliegos pedido',
|
||||||
'precioPliego' => 'Precio pliegos',
|
'precioPliego' => 'Precio pliegos',
|
||||||
'libro' => 'Libro',
|
'libro' => 'Libro',
|
||||||
'totalPapelPedido' => 'Total papel pedido',
|
'totalPapelPedido' => 'Papel pedido',
|
||||||
'lomo' => 'Lomo',
|
'lomo' => 'Lomo',
|
||||||
'peso' => 'Peso',
|
'peso' => 'Peso',
|
||||||
'click' => 'Click',
|
'click' => 'Click',
|
||||||
'totalClicks' => 'Total clicks',
|
'totalClicks' => 'Total clicks',
|
||||||
'horas' => 'Horas máquina',
|
'horas' => 'Horas máquina',
|
||||||
|
'precioHora' => 'Precio hora',
|
||||||
'precioImpresion' => 'Precio impresión',
|
'precioImpresion' => 'Precio impresión',
|
||||||
'precioPagNegro' => 'Precio pág. negro',
|
'precioPagNegro' => 'Precio pág. negro',
|
||||||
'precioPagColor' => 'Precio pág. color',
|
'precioPagColor' => 'Precio pág. color',
|
||||||
'totalTinta' => 'Total tinta',
|
'totalTinta' => 'Total tinta',
|
||||||
'totalCorte' => 'Total corte',
|
'totalCorte' => 'Total corte',
|
||||||
'total' => 'Total',
|
'total' => 'Total',
|
||||||
|
'totalLinea' => 'Total Precio Línea',
|
||||||
'aFavorFibra' => 'A favor de fibra',
|
'aFavorFibra' => 'A favor de fibra',
|
||||||
'cubierta' => 'Cubierta',
|
'cubierta' => 'Cubierta',
|
||||||
'sobrecubierta' => 'Sobrecubierta',
|
'sobrecubierta' => 'Sobrecubierta',
|
||||||
@ -106,7 +108,7 @@ return [
|
|||||||
|
|
||||||
'porDefecto' => 'Por defecto',
|
'porDefecto' => 'Por defecto',
|
||||||
'tipoImpresion' => 'Impresion',
|
'tipoImpresion' => 'Impresion',
|
||||||
'numPagColor' => 'Nº Paginas Color',
|
'numPagColor' => 'Nº Pag. Color',
|
||||||
'saturacion' => 'Saturación',
|
'saturacion' => 'Saturación',
|
||||||
'cobNegro' => 'Cob. % Negro',
|
'cobNegro' => 'Cob. % Negro',
|
||||||
'cobCyan' => 'Cob. % Cyan',
|
'cobCyan' => 'Cob. % Cyan',
|
||||||
|
|||||||
@ -353,7 +353,7 @@ class MaquinaModel extends \App\Models\GoBaseModel
|
|||||||
->groupEnd();
|
->groupEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMaquinaImpresionForPresupuesto($is_rotativa, $tarifa_tipo, $uso_tarifa = 'interior', $tirada, $papel_impresion_id = -1)
|
public function getMaquinaImpresionForPresupuesto($is_rotativa, $tarifa_tipo, $uso_tarifa , $tirada, $papel_impresion_id = -1)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
1.-> tarifa_Tipo impresion
|
1.-> tarifa_Tipo impresion
|
||||||
|
|||||||
@ -135,10 +135,6 @@ $(document).on('click', '.btn-edit-add', function(e) {
|
|||||||
$('#add_entregaPieCalle').prop('checked', data.entregaPieCalle==1?true:false)
|
$('#add_entregaPieCalle').prop('checked', data.entregaPieCalle==1?true:false)
|
||||||
|
|
||||||
$newAddDialog.modal('show')
|
$newAddDialog.modal('show')
|
||||||
|
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
console.log()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -249,8 +249,6 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const POD = <?php echo $POD; ?>;
|
|
||||||
|
|
||||||
$('#serv_default').on('click', function(){
|
$('#serv_default').on('click', function(){
|
||||||
get_tarifas_enc('default').then(
|
get_tarifas_enc('default').then(
|
||||||
get_tarifas_manipulado('default')
|
get_tarifas_manipulado('default')
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@
|
|||||||
<?php if(str_contains($formAction,'edit')): ?>
|
<?php if(str_contains($formAction,'edit')): ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_previewItems") ?>
|
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios") ?>
|
||||||
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems") ?>
|
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems") ?>
|
||||||
@ -109,8 +109,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
|
||||||
@ -120,6 +118,8 @@
|
|||||||
<!------------------------------------------->
|
<!------------------------------------------->
|
||||||
<?php if(str_contains($formAction,'edit')): ?>
|
<?php if(str_contains($formAction,'edit')): ?>
|
||||||
<?= $this->section("additionalInlineJs") ?>
|
<?= $this->section("additionalInlineJs") ?>
|
||||||
|
const POD = <?php echo $POD; ?>;
|
||||||
|
|
||||||
|
|
||||||
if(url_parts[url_parts.length-2] == 'edit'){
|
if(url_parts[url_parts.length-2] == 'edit'){
|
||||||
id = url_parts[url_parts.length-1];
|
id = url_parts[url_parts.length-1];
|
||||||
|
|||||||
@ -60,7 +60,7 @@ table.dataTable.table-hover>tbody>tr.selected:hover>* {
|
|||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size:0.8rem !important;
|
/*font-size:0.8rem !important;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.lp-td {
|
.lp-td {
|
||||||
@ -83,7 +83,7 @@ table.dataTable.table-hover>tbody>tr.selected:hover>* {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lp-button{
|
.lp-button{
|
||||||
font-size: 1.1em;
|
/*font-size: 1.1em;*/
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Reference in New Issue
Block a user