I have created two entities, otherIncome and bonus, with a one-to-many relationship between them. I want to calculate the total sum of the amount field in the bonus table, provided that the paymentStatus field in the bonus table has the value "paid" (paymentStatus is of Enum type). I know I should use entity\sumRelated(LINK, FIELD, [FILTER]), but how should I fill in the [FILTER] part?
Announcement
Collapse
No announcement yet.
How to fill in the [FILTER] part?
Collapse
X
Comment