*/
private PaymentType receiptPaymentType;
+ /**
+ * QR code
+ */
+ private String receiptQrCode;
+
/**
* Register number
*/
this.setReceiptIssued(this.getCurrentReceipt().getReceiptIssued());
this.setReceiptNumber(this.getCurrentReceipt().getReceiptNumber());
this.setReceiptPaymentType(this.getCurrentReceipt().getReceiptPaymentType());
+ this.setReceiptQrCode(this.getCurrentReceipt().getReceiptQrCode());
this.setReceiptRegisterNumber(this.getCurrentReceipt().getReceiptRegisterNumber());
this.setReceiptSellerEmployee(this.getCurrentReceipt().getReceiptSellerEmployee());
this.setReceiptSequenceNumber(this.getCurrentReceipt().getReceiptSequenceNumber());
this.receiptUser = receiptUser;
}
+ /**
+ * Getter for receipt QR code
+ * <p>
+ * @return Receipt QR code
+ */
+ public String getReceiptQrCode () {
+ return this.receiptQrCode;
+ }
+
+ /**
+ * Setter for receipt QR code
+ * <p>
+ * @param receiptQrCode Receipt QR code
+ */
+ public void setReceiptQrCode (final String receiptQrCode) {
+ this.receiptQrCode = receiptQrCode;
+ }
+
/**
* Updates receipt instance with new data. This copies all fields from this
* backing bean into currentReceipt instance which should be still there.
+ *
+ * @return Redirect target
*/
public String updateReceipt () {
// Is current instance still there?
this.setReceiptIssued(null);
this.setReceiptNumber(null);
this.setReceiptPaymentType(null);
+ this.setReceiptQrCode(null);
this.setReceiptRegisterNumber(null);
this.setReceiptResumptionOf(null);
this.setReceiptSellerEmployee(null);
receipt.setReceiptBonusCard(this.getReceiptBonusCard());
receipt.setReceiptId(this.getReceiptId());
receipt.setReceiptNumber(this.getReceiptNumber());
+ receipt.setReceiptQrCode(this.getReceiptQrCode());
receipt.setReceiptRegisterNumber(this.getReceiptRegisterNumber());
receipt.setReceiptResumptionOf(this.getReceiptResumptionOf());
receipt.setReceiptSellerEmployee(this.getReceiptSellerEmployee());
<p:outputLabel for="receiptBarCodeNumber" value="#{project.ENTER_RECEIPT_BARCODE_NUMBER}" />
<p:inputText id="receiptBarCodeNumber" size="20" maxlength="255" value="#{adminReceiptActionController.receiptBarCodeNumber}" />
+ <p:outputLabel for="receiptQrCode" value="#{project.ENTER_RECEIPT_QRCODE}" />
+ <p:inputText id="receiptQrCode" size="20" maxlength="255" value="#{adminReceiptActionController.receiptQrCode}" />
+
<p:outputLabel for="receiptSequenceNumber" value="#{project.ENTER_RECEIPT_SEQUENCE_NUMBER}" />
<p:inputText id="receiptSequenceNumber" size="10" maxlength="20" value="#{adminReceiptActionController.receiptSequenceNumber}" />
<p:outputLabel value="#{project.BARCODE_NUMBER_HEADER}" title="#{project.RECEIPT_BARCODE_TITLE}" />
<h:outputText value="#{project.RECEIPT_NO_BARCODE_ASSIGNED}" rendered="#{empty receiptListController.selectedReceipt.receiptBarCodeNumber}" />
- <p:barcode format="svg" width="100%" type="#{initParam['receipt_barcode_type']}" value="#{receiptListController.selectedReceipt.receiptBarCodeNumber}" rendered="#{not empty receiptListController.selectedReceipt.receiptBarCodeNumber}" />
+ <p:barcode
+ format="svg"
+ width="100%"
+ type="#{initParam['receipt_barcode_type']}"
+ value="#{receiptListController.selectedReceipt.receiptBarCodeNumber}"
+ rendered="#{not empty receiptListController.selectedReceipt.receiptBarCodeNumber}"
+ />
+
+ <p:outputLabel value="#{project.QRCODE_HEADER}" title="#{project.RECEIPT_QRCODE_TITLE}" />
+ <h:outputText value="#{project.RECEIPT_NO_BARCODE_ASSIGNED}" rendered="#{empty receiptListController.selectedReceipt.receiptQrCode}" />
+ <p:barcode
+ format="svg"
+ width="100%"
+ type="qrcode"
+ value="#{receiptListController.selectedReceipt.receiptQrCode}"
+ rendered="#{not empty receiptListController.selectedReceipt.receiptQrCode}"
+ />
<p:outputLabel value="#{project.RECEIPT_SEQUENCE_NUMBER_HEADER}" title="#{project.RECEIPT_SEQUENCE_NUMBER_TITLE}" />
<h:outputText value="#{receiptListController.selectedReceipt.receiptSequenceNumber}" />