diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js index f8850441..bd12638d 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js @@ -650,7 +650,16 @@ function getObjetoLP(lpName, _isCosido, _isTapaDura) { case 'bnhq': case 'color': case 'colorhq': + // Conditional assignements depending on rotation of the printing shape + if (pvObj.orientacionFormas == 'v') { + let auxReg = pvObj.altoForma; + pvObj.altoForma = pvObj.anchoForma; + pvObj.anchoForma = auxReg; + } + $(pvName + '_forma').text(pvObj.anchoForma + "x" + pvObj.altoForma); + break; case 'guardas': + pvObj.anchoForma = (_isTapaDura) ? 2 * pvObj.anchoLibro : pvObj.anchoLibro; // Conditional assignements depending on rotation of the printing shape if (pvObj.orientacionFormas == 'v') { let auxReg = pvObj.altoForma;