Merge branch 'main' into 'dev/api_il_2'

Main

See merge request jjimenez/safekat!562
This commit is contained in:
Ignacio Martinez Navajas
2025-02-21 13:03:55 +00:00
6 changed files with 62 additions and 44 deletions

View File

@ -2884,7 +2884,6 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
$sumForFactor += round($linea['precio_pedido'], 2);
$sumForFactor -= round($linea['precio_pedido'], 2);
$totalImpresion += round($linea['precio_impresion_horas'], 2);
$totalImpresion += round($linea['precio_click_pedido'], 2);
$sumForFactor += round($linea['precio_click_pedido'], 2);
@ -2895,6 +2894,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
$sumForFactor += round($linea['total_corte'], 2);
}
}
$margenImpresion += round($linea['precio_impresion_horas'], 2); // coste de maquina y magen son MARGEN, no COSTE
$margenImpresion += round($linea['margen_impresion_horas'], 2);
$margenImpresion += round($linea['margen_click_pedido'], 2);
$sumForFactor -= round($linea['margen_click_pedido'], 2);

View File

@ -155,7 +155,7 @@ return [
'totalClicks' => 'Total clicks',
'horas' => 'Horas máquina',
'precioHora' => 'Precio hora',
'precioImpresion' => 'Precio impresión',
'precioImpresion' => 'Total horas',
'precioPagNegro' => 'Precio pág. negro',
'precioPagColor' => 'Precio pág. color',
'totalTinta' => 'Total tinta',
@ -228,7 +228,7 @@ return [
'totalClicks' => 'Total Clicks',
'totalTinta' => 'Total Tinta',
'totalCorte' => 'Total Corte',
'totalImpresion' => 'TOTAL IMPRES.',
'totalImpresion' => 'Total máquina',
'velocidadCorte' => 'Velocidad corte',
'precioHoraCorte' => 'Precio hora corte',
'tiempoCorte' => 'Tiempo corte',

View File

@ -154,7 +154,7 @@ class PresupuestoServiciosExtraModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.id AS id, t1.tarifa_extra_id AS tarifa_extra_id, t1.precio AS precio, t1.margen AS margen, t2.nombre AS nombre"
"t1.id AS id, t1.tarifa_extra_id AS tarifa_extra_id, t1.tarifa_extra_id AS tarifa_id, t1.precio AS precio, t1.margen AS margen, t2.nombre AS nombre"
);
$builder->where('t1.presupuesto_id', $presupuesto_id);