>Hi,
>
>I have a Receipt Entity and a Receipt Detail Entity. In order to reduce data entry errors the users must enter the Receipt Total which gets saved on the Receipt and then the total of the Receipt Details must match the figure manually entered. This works great when the user enters a positive amount as being the Receipt Total. If however, a negative figure is entered as the Receipt Total my verification is not working. Stepping through the code shows me that the ReceiptTotal is 0 even though it has been entered as -1 (for example). If I set it to +1, then the Total shows up as 1. What would cause a negative value to be changed to a zero value?
I got it! The textbox was defined with a cssclass which apparently was converting the -1 to (1) and then the value of that was 0!