mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
cambio en dim máximo cubierta y expuesto lomo
This commit is contained in:
@ -625,6 +625,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
$tipo_impresion_id = $this->getTipoImpresion($reqData['tipo'], $reqData['tapa']);
|
||||
$precio_u = [];
|
||||
$peso = [];
|
||||
$lomo = 0.0;
|
||||
|
||||
for ($t = 0; $t < count($tirada); $t++) {
|
||||
$tirada[$t] = intval($tirada[$t]);
|
||||
@ -670,6 +671,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
if (count($linea) > 0) {
|
||||
$costeInterior += floatval($linea['total_impresion']);
|
||||
$peso_interior += floatval($linea['peso']);
|
||||
$lomo += floatval($linea['mano']);
|
||||
}
|
||||
}
|
||||
|
||||
@ -693,10 +695,12 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
|
||||
$costeInterior = 0.0;
|
||||
$peso_interior = 0.0;
|
||||
$lomo = 0;
|
||||
foreach ($interior as $linea) {
|
||||
if (count($linea) > 0) {
|
||||
$costeInterior += floatval($linea['total_impresion']);
|
||||
$peso_interior += floatval($linea['peso']);
|
||||
$lomo += floatval($linea['mano']);
|
||||
}
|
||||
}
|
||||
|
||||
@ -728,6 +732,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
if (count($cubierta) > 0) {
|
||||
$coste_cubierta += floatval($cubierta['total_impresion']);
|
||||
$peso_cubierta += floatval($cubierta['peso']);
|
||||
$lomo += floatval($cubierta['mano']);
|
||||
}
|
||||
if ($coste_cubierta <= 0)
|
||||
$error->cubierta = lang('Presupuestos.errores.noCubiertaSobrecubierta');
|
||||
@ -926,6 +931,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
'tiradas' => $tirada,
|
||||
'precio_u' => $precio_u,
|
||||
'peso' => $peso,
|
||||
'lomo_cubierta' => $lomo,
|
||||
|
||||
'interior' => $interior,
|
||||
'cubierta' => $cubierta,
|
||||
|
||||
@ -317,8 +317,8 @@
|
||||
|
||||
const ancho_libro = getDimensionLibro().ancho;
|
||||
|
||||
// ancho_libro*2 + lomo + solapas*2 <= 640
|
||||
const limite_1 = ((640 - ancho_libro*2 - getLomoLineasPresupuesto()) / 2.0).toFixed(1);
|
||||
// ancho_libro*2 + lomo + solapas*2 <= 630
|
||||
const limite_1 = ((630 - ancho_libro*2 - getLomoLineasPresupuesto()) / 2.0).toFixed(1);
|
||||
// solapas <= ancho_libro - 10
|
||||
const limite_2 = ancho_libro - 10;
|
||||
const limite = Math.min(limite_1, limite_2);
|
||||
@ -339,8 +339,8 @@
|
||||
|
||||
const ancho_libro = getDimensionLibro().ancho;
|
||||
|
||||
// ancho_libro*2 + lomo + solapas*2 <= 640
|
||||
const limite_1 = ((640 - ancho_libro*2 - getLomoLineasPresupuesto()) / 2.0).toFixed(1);
|
||||
// ancho_libro*2 + lomo + solapas*2 <= 630
|
||||
const limite_1 = ((630 - ancho_libro*2 - getLomoLineasPresupuesto()) / 2.0).toFixed(1);
|
||||
// solapas <= ancho_libro - 10
|
||||
const limite_2 = ancho_libro - 10;
|
||||
const limite = Math.min(limite_1, limite_2);
|
||||
|
||||
Reference in New Issue
Block a user