We are using StaticReceiptPrintJob to generate receipts. However, we are having hard time to print proper quantity. For some reason, quantity always prints as 1.
Below is printout from our experiment where we hardcoded quantity sold to 379.23
for (Gnjitmapi itm : wzCmd.getGnjitms()) { LineItem item = new LineItem(); item.setPrinted(false); item.setName(itm.getIn() + "[v.13]"); // item.setQuantitySold(itm.getQ()); // TMP: Hardcoded to test printout item.setQuantitySold(379.23); if (itm.getR() != null && itm.getR().getA() != null) item.setPrice((long) (itm.getR().getA() * 100L)); item.setPrinted(false); lineItemList.add(item); }
yet, receipt has printed with 1.
StaticReceiptPrintJob works very nice except for this one issue.