// adjust the quantity
quantity = (increment ? trans.getItemQuantity(index).add(quantity) : quantity);
try {
trans.modifyQty(index, quantity);
} catch (CartItemModifyException e) {
Debug.logError(e, module);
pos.showDialog("dialog/error/producterror");
}