mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
solucionados fallos en el calculo del ancho y alto maximo en faja
This commit is contained in:
@ -889,11 +889,18 @@ class PresupuestoService extends BaseService
|
||||
$ancho_total += 6;
|
||||
}
|
||||
}
|
||||
else if ($uso == 'faja' || $uso == 'sobrecubierta') {
|
||||
if ($datosPedido->solapas) {
|
||||
// 7 es el vuelo de la tapa dura sobre el interior
|
||||
$ancho_total += (floatval($datosPedido->solapas_ancho) * 2) + (2 * self::SANGRE_FORMAS) + 2*7;
|
||||
}
|
||||
}
|
||||
|
||||
// si es sobrecubierta
|
||||
// Se añaden 5mm de sangre por cada lado + 2 * 7mm de vuelo portada y contraportada -> total 52
|
||||
else
|
||||
$ancho_total += (2 * 7 + 2 * self::SANGRE_FORMAS) + 7;
|
||||
else{
|
||||
$ancho_total += (2 * 7 + 2 * self::SANGRE_FORMAS);
|
||||
}
|
||||
}
|
||||
// Wire-o y espiral (tapa blanda y tapa dura)
|
||||
else if (
|
||||
@ -951,9 +958,11 @@ class PresupuestoService extends BaseService
|
||||
if ($uso == "cubierta")
|
||||
$alto_total += (2 * 3.5 + 2 * $sangre_cubierta);
|
||||
// si es sobrecubierta
|
||||
// Se añaden 5mm de sangre por cada lado + 7mm de vuelo
|
||||
else
|
||||
// Se añaden 5mm de sangre por cada lado
|
||||
else if ($uso == 'sobrecubierta')
|
||||
$alto_total += (7 + 2 * self::SANGRE_FORMAS);
|
||||
else if ($uso == 'faja')
|
||||
$alto_total += (2 * self::SANGRE_FORMAS);
|
||||
}
|
||||
// Tapa dura (espiral y wire-0)
|
||||
else if ($tipo_impresion_id == 5 || $tipo_impresion_id == 7) {
|
||||
@ -1793,8 +1802,8 @@ class PresupuestoService extends BaseService
|
||||
|
||||
if ($uso == 'cubierta' || $uso == 'sobrecubierta' || $uso == 'faja') {
|
||||
|
||||
$datosPedido->anchoExteriores = PresupuestoService::getAnchoTotalExteriores($uso_papel, $tipo_impresion_id, $datosPedido, $maquina->maquina_id, $lomoRedondo);
|
||||
$datosPedido->altoExteriores = PresupuestoService::getAltoTotalExteriores($uso_papel, $tipo_impresion_id, $datosPedido);
|
||||
$datosPedido->anchoExteriores = PresupuestoService::getAnchoTotalExteriores($uso, $tipo_impresion_id, $datosPedido, $maquina->maquina_id, $lomoRedondo);
|
||||
$datosPedido->altoExteriores = PresupuestoService::getAltoTotalExteriores($uso, $tipo_impresion_id, $datosPedido);
|
||||
}
|
||||
|
||||
$data['uso'] = $uso;
|
||||
|
||||
Reference in New Issue
Block a user