I have my CRM dashboard, where I have two menus. contracts and cases.
It turns out that I intend to attribute to the hour consumed the value of the sum of all contracts related to that contract.
as if it were the sum of the matrix of hours consumed in the case.
I've already tried adding in the entity manager the code: consumedHours =entity\sumRelated('Case', 'caseConsumedHour', 'name==stockHoursContracts'); but it doesn't work.
I ask for tips on how to do this sum correctly.
The images bellow will help you to understand the issue.
Thank you.
It turns out that I intend to attribute to the hour consumed the value of the sum of all contracts related to that contract.
as if it were the sum of the matrix of hours consumed in the case.
I've already tried adding in the entity manager the code: consumedHours =entity\sumRelated('Case', 'caseConsumedHour', 'name==stockHoursContracts'); but it doesn't work.
I ask for tips on how to do this sum correctly.
The images bellow will help you to understand the issue.
Thank you.
Comment