PosTransaction trans = PosTransaction.getCurrentTx(pos.getSession());
PosScreen.currentScreen.getOutput().print(UtilProperties.getMessage(PosTransaction.resource,"PosProcessing",Locale.getDefault()));
if (trans.isEmpty()) {
PosScreen newPos = pos.showPage("pospanel");
newPos.showDialog("dialog/error/noitems");
} else if (trans.getTotalDue().compareTo(BigDecimal.ZERO) > 0) {
pos.showDialog("dialog/error/notenoughfunds");
} else {
// manual locks (not secured; will be unlocked on clear)
pos.getInput().setLock(true);