Beispiel #1
0
  private String getRecieptRows(PosReceipt posReceipt) {
    String s = "";

    for (ReceiptRow receiptRow : posReceipt.getReceipt().getReceiptRows()) {
      s +=
          receiptRow.getItemName()
              + "\r\n"
              + receiptRow.getPrice()
              + " x "
              + receiptRow.getQuantity()
              + "="
              + Money.MULTIPLY(receiptRow.getPrice(), receiptRow.getQuantity())
              + "\r\n";
    }

    return s;
  }