cuando el cálculo sea conteo, no aplicar formato, aplicar formato 0,0 sin decimales

This commit is contained in:
dehernandezm 2025-01-24 15:20:10 -06:00
parent 49b567ca2d
commit bf7cd5bd21
3 changed files with 5 additions and 3 deletions

View File

@ -267,7 +267,9 @@ function makeRenderer() {
var valToFormat = aggregator.value();
var resultValue = aggregator.format(valToFormat);
var keyColumnaCalculo = isNotNullish(_this2.props.vals) && _this2.props.vals.length ? _this2.props.vals[0] : null;
if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions)) {
if (_this2.props.aggregatorName === 'Conteo') {
resultValue = isNotNullish(_this2.props.functions) ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', false) : resultValue;
} else if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions)) {
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
if (isNotNullish(_definition) && isNotNullish(_definition.value)) {
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "v-react-pivottable",
"version": "0.11.28",
"version": "0.11.29",
"description": "A React-based pivot table",
"main": "PivotTableUI.js",
"files": [