Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BusinessRules between different BOs
Message
 
À
30/09/2010 15:02:14
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01483404
Message ID:
01483565
Vues:
42
>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?
Frank,
In your Receipt BO Rules method, create a ReceiptDetail BO, call the method to sum the details and check that amount against the amount in the Receipt BO.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform