When I run the following script to check inputQty
greater than AvailQty
I am getting the following:
java.lang.NumberFormatException: For input string: "97,045.1193"
This error occurs if availableQty
is a decimal number. The value is delivered from a database, can you please correct where I am wrong?
double AvailQty = Double.valueOf(AQTY.getValue());
double inputQty = Double.valueOf(QTY.getValue());
if(inputQty > AvailQty){
session.setStatusMessage("Not Enough Quantity");
//Abort operation
throw new AbortHandlerException();
}
Thanks