Merge branch 'bug/guardas' into 'main'

Arreglado bug de guardas tapa dura (forma

See merge request jjimenez/safekat!173
This commit is contained in:
Ignacio Martinez Navajas
2024-02-27 18:16:07 +00:00

View File

@ -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;