Fix: Change opportunity kanban view aggregate operation from MIN to SUM (#16879)
Closes #16806
This commit is contained in:
+3
@@ -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,
|
||||
};
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ export const opportunitiesByStageView = ({
|
||||
key: null,
|
||||
position: 2,
|
||||
icon: 'IconLayoutKanban',
|
||||
kanbanAggregateOperation: AggregateOperations.MIN,
|
||||
kanbanAggregateOperation: AggregateOperations.SUM,
|
||||
kanbanAggregateOperationFieldMetadataId:
|
||||
opportunityObjectMetadata.fields.find(
|
||||
(field) => field.standardId === OPPORTUNITY_STANDARD_FIELD_IDS.amount,
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ export const computeStandardOpportunityViews = (
|
||||
position: 2,
|
||||
icon: 'IconLayoutKanban',
|
||||
mainGroupByFieldName: 'stage',
|
||||
kanbanAggregateOperation: AggregateOperations.MIN,
|
||||
kanbanAggregateOperation: AggregateOperations.SUM,
|
||||
kanbanAggregateOperationFieldName: 'amount',
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user