WEB-777 Negative values allowed in Add Data for Savings Account Transaction in Group (#3217)
This commit is contained in:
@@ -54,6 +54,7 @@ export class Datatables {
|
|||||||
'office_phone',
|
'office_phone',
|
||||||
'office phone'
|
'office phone'
|
||||||
].some((name) => colName.includes(name.replace(/[_\s]+/g, '')));
|
].some((name) => colName.includes(name.replace(/[_\s]+/g, '')));
|
||||||
|
const isNumericField = column.columnDisplayType === 'INTEGER' || column.columnDisplayType === 'DECIMAL';
|
||||||
switch (column.columnDisplayType) {
|
switch (column.columnDisplayType) {
|
||||||
case 'INTEGER':
|
case 'INTEGER':
|
||||||
case 'STRING':
|
case 'STRING':
|
||||||
@@ -66,7 +67,7 @@ export class Datatables {
|
|||||||
type: column.columnDisplayType === 'INTEGER' || column.columnDisplayType === 'DECIMAL' ? 'number' : 'text',
|
type: column.columnDisplayType === 'INTEGER' || column.columnDisplayType === 'DECIMAL' ? 'number' : 'text',
|
||||||
required: column.isColumnNullable ? false : true
|
required: column.isColumnNullable ? false : true
|
||||||
};
|
};
|
||||||
if (isMinSavingsAmount || isPriceOneShare || isRestrictedField) {
|
if (isMinSavingsAmount || isPriceOneShare || isRestrictedField || isNumericField) {
|
||||||
inputOptions.min = 0;
|
inputOptions.min = 0;
|
||||||
}
|
}
|
||||||
return new InputBase(inputOptions);
|
return new InputBase(inputOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user