Hi,
I may have asked this before, my apologies if I have, but I can't work out how to do this.
I have a Receipt BO and a ReceiptDetails BO which is a child of the Receipt BO. For data entry validation, the user has to enter a total amount received at the Receipt BO level and then the sum of the amounts entered at the Receipt Detail BO level must equal the Receipt BO's total amount received.
How should I approach writing such a Business Rule?
I guess it should be at the Receipt BO level, but how would I refer to the child BO to sum all the amounts?