Fix: Change opportunity kanban view aggregate operation from MIN to SUM (#16879)

Closes #16806
This commit is contained in:
Abdul Rahman
2025-12-31 18:28:20 +05:30
committed by GitHub
parent 73d2027391
commit 229916def2
3 changed files with 5 additions and 2 deletions
@@ -161,6 +161,7 @@ export const getAvailableAggregationsFromObjectFields = (
description: `Maximal amount contained in the field ${field.name}`,
fromField: field.name,
fromSubFields: getSubfieldsForAggregateOperation(field.type),
subFieldForNumericOperation: 'amountMicros',
fromFieldType: field.type,
aggregateOperation: AggregateOperations.MAX,
};
@@ -170,6 +171,7 @@ export const getAvailableAggregationsFromObjectFields = (
description: `Sum of amounts contained in the field ${field.name}`,
fromField: field.name,
fromSubFields: getSubfieldsForAggregateOperation(field.type),
subFieldForNumericOperation: 'amountMicros',
fromFieldType: field.type,
aggregateOperation: AggregateOperations.SUM,
};
@@ -179,6 +181,7 @@ export const getAvailableAggregationsFromObjectFields = (
description: `Average amount contained in the field ${field.name}`,
fromField: field.name,
fromSubFields: getSubfieldsForAggregateOperation(field.type),
subFieldForNumericOperation: 'amountMicros',
fromFieldType: field.type,
aggregateOperation: AggregateOperations.AVG,
};