RenGar - 2004-03-24

Logged In: YES
user_id=995554

The SOLUTION

In tha class com.globalretailtech.pos.events.Weight, there is
1 bug :

public void engage(int value) {

context().clearInput();

if (state() > 0) {

popState();
type =
PosNumberDialog.CLEAR;
< Add this line for input clear, if not input is
decimal
setPromptText(context().posParameters().getString
("EnterItem"));
} else {

if (value == 0) {
type =
PosNumberDialog.DECIMAL;
< Add this line for input decimal
setPromptText(context().posParameters
().getString("EnterWeight"));
states().pushState(1);
context().eventStack().pushEvent(this);
} else {
type =
PosNumberDialog.CLEAR;
< Add this line for input clear, if not input is decimal
setPromptText(context().posParameters
().getString("EnterItem"));
setWeight((double) value);
context().eventStack().pushEvent(this);
}
}

context().operPrompt().update(this);
}