Hi,
I defined many-to-many relation in Oppotunity for my custom entity ProductItem.
I added new field into Opportunity entity: amoutProductTotal of type Float
In entity manager I created formula for Opportunity: amoutProductTotal = entity\sumRelated('productItems','amount')
The function runs, but does not sum related records of the target entity. For each target entity it sums related records of another (always the same) entity.
It's a bug or am I doing something wrong?
thanks
(I'm on version 5.5.1)
I defined many-to-many relation in Oppotunity for my custom entity ProductItem.
I added new field into Opportunity entity: amoutProductTotal of type Float
In entity manager I created formula for Opportunity: amoutProductTotal = entity\sumRelated('productItems','amount')
The function runs, but does not sum related records of the target entity. For each target entity it sums related records of another (always the same) entity.
It's a bug or am I doing something wrong?
thanks
(I'm on version 5.5.1)
Comment