Assume I have a Customer BO with an attribute TotalOwed thats calculated.
The Invoice BO is owned by customer and has an attribute LineTotal
I want the TotalOwed in the Customer BO to always be the SUM of the LineTotal for the customers Invoices.
So my question,
1) Do I put the rule in the Customer with the logic:
IF Invoices FROM Customer.MyInvoices WAS CHANGED Then Customer.TotalOwed = SUM Invoice.LineTotal where Invoice IN Customer.MyInvoices
or
2) put the rule in the Invoice BO with the logic:
IF Invoice.LineTotal WAS CHANGED then Invoice.Customer.TotalOwed = ......
Thanks
Bruce