I have two custom objects. Reservation__c and MoneyReceived__c and they are lookup relationship.
I want Reservation__c.totalReceived__c = sum of all MoneyReceived__c.amountReceived__c.
There are one or more amountReceived__c per reservation.
I need help with writing formula calculating
sum of (amountReceived__c) = totalReceived__c
Or do I have to write a class?