Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jump Start and Discount Rule
Message
De
09/06/2008 11:03:34
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Jump Start and Discount Rule
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01322559
Message ID:
01322559
Vues:
76
In the Jump Start tutorial "Web Forms Application - C#" step 14 "Running the Order Edit Form"

When saving the Order Edit form the Discount in the OrderDetail fails entityRule.

Stepping through the code in OrderDetailRules.cs:
discount = 0.0
mmType.IsEmpty(discount) = true

I do not understand why 0.0 fails. Should I not be able to have a discount of 0.0?

As you see in the tutorial documentation in step 14 the OrderDetail grid does show discount of 0 for each row.
And if the author tested this tutorial they would not have gotten the same error.

In my test the save fails due to the following rules message "Discount is required"

I know I could change the data, but I should be allowed to have a 0 discount.
Why is the Detail table being checked anyway? The data is readonly?

Any help is appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform