*/
private Long receiptRegisterNumber;
+ /**
+ * Current receipt is a resumption of this receipt
+ */
+ private BillableReceipt receiptResumptionOf;
+
/**
* Selling employee
*/
this.receiptRegisterNumber = receiptRegisterNumber;
}
+ /**
+ * Getter for receipt's resumption of an other receipt
+ * <p>
+ * @return Current receipt is based on this receipt
+ */
+ public BillableReceipt getReceiptResumptionOf () {
+ return this.receiptResumptionOf;
+ }
+
+ /**
+ * Setter for receipt's resumption of an other receipt
+ * <p>
+ * @param receiptResumptionOf Current receipt is based on this receipt
+ */
+ public void setReceiptResumptionOf (final BillableReceipt receiptResumptionOf) {
+ this.receiptResumptionOf = receiptResumptionOf;
+ }
+
/**
* Getter for receipt seller employee
* <p>
this.setReceiptNumber(null);
this.setReceiptPaymentType(null);
this.setReceiptRegisterNumber(null);
+ this.setReceiptResumptionOf(null);
this.setReceiptSellerEmployee(null);
this.setReceiptSequenceNumber(null);
this.setReceiptTransactionNumber(null);
receipt.setReceiptId(this.getReceiptId());
receipt.setReceiptNumber(this.getReceiptNumber());
receipt.setReceiptRegisterNumber(this.getReceiptRegisterNumber());
+ receipt.setReceiptResumptionOf(this.getReceiptResumptionOf());
receipt.setReceiptSellerEmployee(this.getReceiptSellerEmployee());
receipt.setReceiptSequenceNumber(this.getReceiptSequenceNumber());
receipt.setReceiptTransactionNumber(this.getReceiptTransactionNumber());
ADMIN_ENABLE_INCOME=Einkommen aktiviert?
#@TODO Please fix German umlauts!
ADMIN_ENABLE_INCOME_TITLE=Bitte waehlen Sie aus, ob das Einkommen aktiviert ist.
+#@TODO Please fix German umlauts!
+SELECT_RECEIPT_RESUMPTION_OF=Waehle wiederaufgenommenen Kassenbon aus:
itemLabel="#{beanHelper.renderContact(receiptUser.userContact)} (#{receiptUser.userName})"
/>
</p:selectOneMenu>
+
+ <p:outputLabel for="receiptResumptionOf" value="#{project.SELECT_RECEIPT_RESUMPTION_OF}" />
+ <p:selectOneMenu
+ id="receiptResumptionOf"
+ value="#{adminReceiptActionController.receiptResumptionOf}"
+ filter="true"
+ filterMatchMode="contains"
+ >
+
+ <f:converter converterId="ReceiptConverter" />
+
+ <f:selectItem
+ itemValue="#{null}"
+ itemLabel="#{msg.PLEASE_SELECT}"
+ noSelectionOption="true"
+ itemDisabled="true"
+ />
+
+ <f:selectItems
+ value="#{receiptListController.allReceipts}"
+ var="receipt"
+ itemValue="#{receipt}"
+ itemLabel="#{receiptBeanHelper.renderReceipt(receipt, false)}"
+ />
+ </p:selectOneMenu>
</p:panelGrid>
</p:fieldset>