ru.coon 2.7.75 → 2.7.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Version 2.7.76, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/aba7291e49ef3d047503bdb2b8dae078d617a8f2)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'>fix precision in CopyRowsFromGrid, HT-9263</span> ([a02eb9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a02eb9443ebf6794e35abdc924c45763c815b245))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([a0b693], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a0b693884f48f4d3489f7511c01c5f85e6d7a798))
|
|
6
|
+
|
|
1
7
|
# Version 2.7.75, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/07c180f0c622d325ab34f62f832e1ee801609fdc)
|
|
2
8
|
* ## Features
|
|
3
9
|
* <span style='color:green'>feat: HT-10115: chain plugin return result, log unified buttons call handlers result</span> ([408dab], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/408dab15c6afc49e47bd80729bf55e1a541522cc))
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
7
7
|
'Sigma.common.grid.plugin.CopyRowsFromGrid',
|
|
8
8
|
'Sigma.common.plugin.grid.CopyRowsFromGrid'
|
|
9
9
|
],
|
|
10
|
+
defaultFloatPrecision: 2,
|
|
10
11
|
configurePanelWizard: 'CopyRowsFromGridConfigPanel',
|
|
11
12
|
position: -1,
|
|
12
13
|
allowAddRowOnPaste: false,
|
|
@@ -1058,9 +1059,12 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
1058
1059
|
this.getRowStyleXlsx(grid, record, workbook)
|
|
1059
1060
|
);
|
|
1060
1061
|
if (valueType === 'float') {
|
|
1061
|
-
|
|
1062
|
+
let precision = Number(columnConfig.precision);
|
|
1063
|
+
if (!Number.isInteger(precision)) {
|
|
1064
|
+
precision = Number(this.getConfig('floatPrecision') || this.defaultFloatPrecision);
|
|
1065
|
+
}
|
|
1062
1066
|
col['styleId'] = workbook.addCellStyle({
|
|
1063
|
-
format: '0.'.padEnd(
|
|
1067
|
+
format: precision !== 0 ? '0.'.padEnd(precision + 2, '0') : '0',
|
|
1064
1068
|
});
|
|
1065
1069
|
if (col['value'].length) {
|
|
1066
1070
|
col['value'] = parseFloat(col['value'].replace(/\s/g, '').replace(',', '.'));
|
package/src/version.js
CHANGED