1.- Press button with
com.globalretailtech.pos.events.Weight
2.- Introduce the weight in decimal number format
3.- It asks me for the item in decimal format. It should
do it in suitable format to introduce the PLU or the SKU.
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);
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
}