PMCORE-4261 Comporium - Report Table Error

This commit is contained in:
Julio Cesar Laura Avendaño
2023-08-28 19:24:28 +00:00
parent aacb5e33e3
commit b3429ed05c

View File

@@ -432,9 +432,11 @@ Ext.onReady(function () {
Ext.getCmp("sizeEdit").setValue(''); Ext.getCmp("sizeEdit").setValue('');
} }
Ext.getCmp("field_incre").enable(); if (Ext.getCmp("field_incre")) {
if (defaultValue) { Ext.getCmp("field_incre").enable();
Ext.getCmp("field_incre").setValue(false); if (defaultValue) {
Ext.getCmp("field_incre").setValue(false);
}
} }
} }
@@ -446,16 +448,20 @@ Ext.onReady(function () {
Ext.getCmp("sizeEdit").setValue(''); Ext.getCmp("sizeEdit").setValue('');
} }
Ext.getCmp("field_incre").disable(); if (Ext.getCmp("field_incre")) {
Ext.getCmp("field_incre").setValue(false); Ext.getCmp("field_incre").disable();
Ext.getCmp("field_incre").setValue(false);
}
} }
if (valueType === 'BOOLEAN' || valueType === 'DATE' || valueType === 'DATETIME' || valueType === 'TIME' || valueType === 'DECIMAL' || valueType === 'DOUBLE' || valueType === 'FLOAT' || valueType === 'REAL') { if (valueType === 'BOOLEAN' || valueType === 'DATE' || valueType === 'DATETIME' || valueType === 'TIME' || valueType === 'DECIMAL' || valueType === 'DOUBLE' || valueType === 'FLOAT' || valueType === 'REAL') {
Ext.getCmp("sizeEdit").disable(); Ext.getCmp("sizeEdit").disable();
Ext.getCmp("sizeEdit").setValue(''); Ext.getCmp("sizeEdit").setValue('');
Ext.getCmp("field_incre").disable(); if (Ext.getCmp("field_incre")) {
Ext.getCmp("field_incre").setValue(false); Ext.getCmp("field_incre").disable();
Ext.getCmp("field_incre").setValue(false);
}
} }
} }
} }
@@ -1342,11 +1348,13 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
fieldIndex.setValue(false); fieldIndex.setValue(false);
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (swAI == 1) { if (typeof fieldInc !== 'undefined') {
fieldInc.enable(); if (swAI == 1) {
} else { fieldInc.enable();
fieldInc.disable(); } else {
fieldInc.setValue(false); fieldInc.disable();
fieldInc.setValue(false);
}
} }
if (swSize == 1) { if (swSize == 1) {