I have a mysterious problem where part of a report does not return a value for the unit price.
I have emplimneted a simple IF statement:
IF Quantity = 0 THEN
UnitPriceToPrint := ROUND(AmountExclInvDisc / 1,0.00001)
ELSE
UnitPriceToPrint := ROUND(AmountExclInvDisc / Quantity,0.00001);
END;
but the report displays a 0 if Quantity=0. I've checked visibility expressions on the indvidual cell, row and column and haven't found anything that should effect the visibility (such as if Quatity=0 than True).
Any help would be much obliged.
Cheers,
Suds
Comments
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
The value 0 must be in field AmountExclInvDisc because if it is not possible to divide anything by zero
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Ivan: It returns a Zero, or how i set up, a blank when there should always be a positive number.
Wat is the value of AmountExclInvDisc when Quantity = 0?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community