Change product quantity compoent precision to 8

This commit is contained in:
2025-05-09 17:10:32 +00:00
parent e86a199c5e
commit f1a0b7be5e
7 changed files with 24 additions and 22 deletions

View File

@@ -275,7 +275,7 @@ ccolumns[4] = {
ccolumns[4]['content'][0] = {
'name' : '',
'dataType' : 'number',
'precision' : 6,
'precision' : 8,
'quantity':true,
'attr' : {
'type' : 'text'
@@ -283,7 +283,7 @@ ccolumns[4]['content'][0] = {
'css' : {
'text-align' : 'right'
},
'onChange': '$(this).val(QuantityFormat($(this).val(),6));CTABLE.setRowDate(this,$(this).parent(\'td\').parent(\'tr\').index());'
'onChange': '$(this).val(QuantityFormat($(this).val(),8));CTABLE.setRowDate(this,$(this).parent(\'td\').parent(\'tr\').index());'
};
ccolumns[5] = {
'name' : 'divider',
@@ -294,7 +294,7 @@ ccolumns[5] = {
ccolumns[5]['content'][0] = {
'name' : '',
'dataType' : 'number',
'precision' : 6,
'precision' : 0,
'quantity':true,
'attr' : {
'type' : 'text'
@@ -302,7 +302,7 @@ ccolumns[5]['content'][0] = {
'css' : {
'text-align' : 'right'
},
'onChange': '$(this).val(QuantityFormat($(this).val(),6));CTABLE.setRowDate(this,$(this).parent(\'td\').parent(\'tr\').index());'
'onChange': '$(this).val(QuantityFormat($(this).val(),0));CTABLE.setRowDate(this,$(this).parent(\'td\').parent(\'tr\').index());'
};
ccolumns[6] = {
'name' : 'quantity',
@@ -314,7 +314,7 @@ ccolumns[6]['content'][0] = {
'name' : '',
'dataType' : 'number',
'quantity':true,
'precision' : 6,
'precision' : 8,
'attr' : {
'type' : 'text'
},
@@ -362,7 +362,7 @@ ccolumns[8] = {
ccolumns[8]['content'][0] = {
'name' : '',
'dataType' : 'number',
'precision' : 6,
'precision' : 8,
'readonly' : true,
'attr' : {
'type' : 'text',