arreglado fallo en la obtención del papel interior en presu cliente

This commit is contained in:
2025-02-27 16:29:31 +01:00
parent b126c910d6
commit dfa9f76621
2 changed files with 7 additions and 3 deletions

View File

@ -328,7 +328,11 @@ class Papelesgenericos extends \App\Controllers\BaseResourceController
$forSelect2 = intval($this->request->getGet('forSelect2') ?? 0);
$anchoLibro = 2 * $ancho + 2 * $solapas + $lomo;
$anchoLibro = $ancho;
if(intval($cubierta) == 1 || intval($sobrecubierta) == 1){
$anchoLibro = 2 * $ancho + 2 * $solapas + $lomo;
}
$menu = $this->model->getPapelCliente($tipo, $cubierta, $sobrecubierta, $guardas, $selected_papel, $tapa_dura, false, $POD, $anchoLibro, $alto, $tirada);
$menu2 = $this->model->getPapelCliente($tipo, $cubierta, $sobrecubierta, $guardas, $selected_papel, $tapa_dura, true, $POD, $anchoLibro, $alto, $tirada);