diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
index 456ee7bd..57b138a2 100755
--- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
+++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
@@ -87,8 +87,7 @@ function format(d) {
var value = '
'+
' | '+
' | '+
- ' | '+
- ''+
+ ' | '+
'' +
' ' +
"= lang("Presupuestos.numeroPliegos") ?>" +
@@ -151,8 +150,7 @@ function format(d) {
' '+
' | '+
' | '+
- ' | '+
- ''+
+ ' | '+
'' +
' ' +
' ' +
@@ -203,8 +201,7 @@ function format(d) {
' '+
' | '+
' | '+
- ' | '+
- ''+
+ ' | '+
'' +
(d.row_id.includes('rot')?' ': ' ') +
'= lang('Presupuestos.metrosMinuto') ?>' +
@@ -260,8 +257,7 @@ function format(d) {
' '+
' | '+
' | '+
- ' | '+
- ''+
+ ' | '+
'' +
(d.row_id.includes('rot')?' ': ' ') +
'= lang('Presupuestos.metrosPapelLibro') ?>' +
@@ -317,8 +313,7 @@ function format(d) {
' '+
' | '+
' | '+
- ' | '+
- ''+
+ ' | '+
'' +
(d.row_id.includes('rot')?' ': ' ') +
'= lang('Presupuestos.velocidadCorte') ?>' +
@@ -3044,8 +3039,8 @@ function fill_lp_from_bbdd(){
lp.dimensiones_maquina_impresion = [formas.maquina_impresion_ancho, formas.maquina_impresion_alto]
lp.num_formas = {
value : formas.formas,
- formas_v : formas.formas_v,
- formas_h : formas.formas_h,
+ num_formas_verticales : formas.formas_v,
+ num_formas_horizontales : formas.formas_h,
posicion_formas : formas.formas_orientacion
}
lp['tipo_maquina'] = lp['maquina_tipo']
@@ -3167,9 +3162,6 @@ async function fill_bbdd_from_lp(presupuesto_id){
tableLineasPresupuesto.rows().every( function ( rowIdx, tableLoop, rowLoop ) {
var rowData = this.data();
- console.log(rowData)
- console.log(rowData.formas_v)
- console.log(rowData.formas_v)
const formas = {
maquina_ancho: rowData.maquina_ancho,
maquina_alto: rowData.maquina_alto,
@@ -3180,8 +3172,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
formas_h: rowData.formas_h,
formas_orientacion: rowData.formas_orientacion,
}
- console.log(JSON.stringify(formas))
-
+
var t_maq_str = rowData.tiempo.split(':'); // split it at the colons
var t_maq = 0
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 632ac054..61b52b47 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
@@ -461,12 +461,9 @@ function getObjetoLP(lpName) {
pvObj.altoForma = auxReg;
}
$(pvName + '_forma').text(pvObj.anchoForma + "x" + pvObj.altoForma);
- pvObj.altoClick = 305; //parseFloat($('#lp_' + lpName + '_alto_click').val());
- pvObj.nFormas = (_isCosido) ? pvObj.nFormas/2 : pvObj.nFormas;
- $(pvName + '_nFormas').text(pvObj.nFormas);
+ pvObj.altoClick = parseFloat(rowData.alto_click);
pvObj.nFormasH = Math.trunc(pvObj.anchoImpresion / pvObj.anchoForma);
pvObj.nFormasV = Math.trunc((pvObj.altoImpresion - 3) / (pvObj.altoForma + 4));
- //console.log()
break;
case 'bn':
@@ -480,8 +477,6 @@ function getObjetoLP(lpName) {
pvObj.anchoForma = auxReg;
}
$(pvName + '_forma').text(pvObj.anchoForma + "x" + pvObj.altoForma);
- pvObj.nFormas = (_isCosido) ? pvObj.nFormas/2 : pvObj.nFormas;
- $(pvName + '_nFormas').text(pvObj.nFormas);
break;
default:
| | | | |