Hello friends, please, how can I calculate only the requests with the status "Validated"?
Currently, I am using a formula that counts the record lines, but this affects the calculation.
montant = entity\sumRelated('avan2', 'montant');
reste = entity\sumRelated('avan2', 'reste');
The records are linked by a many-to-many relationship.
If I'm not mistaken, you need to retrieve all the related records, check the status of each one, and then count only those with the status "Validated".
Comment