I have parts produced and parts rejected options in my app. My client gave me a condition to put:
At any time parts rejected should not be less than the parts produced
and
You should be able to save even if the parts produced is 0*
What do I need to put the condition there to make it successful?
Parts produced/rected those are textbox names
the data in the textboxes we can select it from database
now i have the condition like
if (partProduced <= _runtime.PartsRejected)
{
errorMessage.Append("Parts rejected should not be greater than or equal to parts produced." + Environment.NewLine);
}
this is the condition i have now i need to change it as my client requirement
Comments
Leave a comment