And your formulas should look something like this:
Code:
montant = entity\sumRelated('avan2', 'montant', 'Validated'); reste = entity\sumRelated('avan2', 'reste', 'Validated');
Primary Filters by means of Report Filters: https://docs.espocrm.com/user-guide/...report-filters.
You can find the list of Primary Filters in Administration > Entity Manager > Ypur_entity_name > Details > Primary Filters.
Leave a comment: