XModel jmodel = this.createModel();
if (tx != null && !tx.isEmpty()) {
tx.appendItemDataModel(jmodel);
this.appendEmpty(jmodel);
tx.appendTotalDataModel(jmodel);
if (tx.selectedPayments() > 0) {
this.appendEmpty(jmodel);
tx.appendPaymentDataModel(jmodel);
}
if (pos.getInput().isFunctionSet("PAID")) {
tx.appendChangeDataModel(jmodel);