private AgeGroup productAgeGroup;
/**
- * Available
+ * Availability
*/
private Boolean productAvailability;
+ /**
+ * Barcode number
+ */
+ private String productBarCodeNumber;
+
/**
* Category instance
*/
this.productAvailability = productAvailability;
}
+ /**
+ * Getter for product's bar-code number
+ * <p>
+ * @return Product's bar-code number
+ */
+ public String getProductBarCodeNumber () {
+ return this.productBarCodeNumber;
+ }
+
+ /**
+ * Setter for product's bar-code number
+ * <p>
+ * @param productBarCodeNumber Product's bar-code number
+ */
+ public void setProductBarCodeNumber (final String productBarCodeNumber) {
+ this.productBarCodeNumber = productBarCodeNumber;
+ }
+
/**
* Getter for product's category
* <p>
// Clear all data
this.setProductAgeGroup(null);
this.setProductAvailability(Boolean.FALSE);
+ this.setProductBarCodeNumber(null);
this.setProductCategory(null);
this.setProductGrossPrice(null);
this.setProductI18nKey(null);
* @return Product instance
*/
private Product createProductInstance () {
-// Create product instance
+ // Create product instance
final Product product = new GenericProduct(this.getProductI18nKey(), this.getProductGrossPrice(), this.getProductCurrencyCode(), this.getProductCategory(), this.getProductAvailability(), this.getProductUnitAmount(), this.getProductUnitI18nKey());
// Set all optional fields
product.setProductAgeGroup(this.getProductAgeGroup());
+ product.setProductBarCodeNumber(this.getProductBarCodeNumber());
product.setProductManufacturer(this.getProductManufacturer());
product.setProductNumber(this.getProductNumber());
product.setProductNetPrice(this.getProductNetPrice());
ADMIN_PRODUCT_NUMBER_HEADER=Produktnummer:
RECEIPT_NO_BARCODE_ASSIGNED=Dem Kassenbon wurde kein Barcode zugewiesen.
NO_PRODUCT_NUMBER_ASSIGNED=Keine Produktnummer zugewiesen.
+ADMIN_ENTER_GENERIC_PRODUCT_BARCODE_NUMBER=Geben Sie die Balkencodenummer des Produktes ein:
+BARCODE_NUMBER_HEADER=Barcode-Nummer:
+PRODUCT_NO_BARCODE_NUMBER_ASSIGNED=Das Produkt hat keine Barcode-Nummer zugewiesen.
+PRODUCT_BARCODE_NUMBER_TITLE=Barcode Nummer des Produktes.
ADMIN_PRODUCT_NUMBER_HEADER=Product number:
RECEIPT_NO_BARCODE_ASSIGNED=No barcode has been assigned to the receipt.
NO_PRODUCT_NUMBER_ASSIGNED=No product number assigned.
+ADMIN_ENTER_GENERIC_PRODUCT_BARCODE_NUMBER=Enter product's barcode number:
+BARCODE_NUMBER_HEADER=Barcode number:
+PRODUCT_NO_BARCODE_NUMBER_ASSIGNED=Product has no bar-code number assigned.
+PRODUCT_BARCODE_NUMBER_TITLE=Bar-code number of product.
title="#{project.ADMIN_ENTER_GENERIC_PRODUCT_NUMBER_TITLE}"
/>
+ <p:outputLabel for="productBarCodeNumber" value="#{project.ADMIN_ENTER_GENERIC_PRODUCT_BARCODE_NUMBER}" />
+ <p:inputText
+ id="productBarCodeNumber"
+ value="#{adminProductController.productBarCodeNumber}"
+ size="30"
+ maxlength="255"
+ title="#{project.ADMIN_ENTER_GENERIC_PRODUCT_BARCODE_NUMBER_TITLE}"
+ />
+
<p:outputLabel for="productAgeGroup" value="#{project.ADMIN_SELECT_PRODUCT_AGE_GROUP}" />
<p:selectOneMenu
id="productAgeGroup"
<h:outputText value="#{productListController.selectedProduct.productNumber}" rendered="#{not empty productListController.selectedProduct.productNumber}" />
<h:outputText value="#{project.NO_PRODUCT_NUMBER_ASSIGNED}" rendered="#{empty productListController.selectedProduct.productNumber}" />
+ <p:outputLabel value="#{project.BARCODE_NUMBER_HEADER}" title="#{project.PRODUCT_BARCODE_NUMBER_TITLE}" />
+ <h:outputText value="#{project.PRODUCT_NO_BARCODE_NUMBER_ASSIGNED}" rendered="#{empty productListController.selectedProduct.productBarCodeNumber}" />
+ <p:barcode format="svg" width="100%" type="#{initParam['product_barcode_type']}" value="#{productListController.selectedProduct.productBarCodeNumber}" rendered="#{not empty productListController.selectedProduct.productBarCodeNumber}" />
+
<p:outputLabel value="#{project.PRODUCT_AVAILABILITY_HEADER}" title="#{project.PRODUCT_AVAILABILITY_TITLE}" />
<h:outputText value="#{productListController.selectedProduct.productAvailability ? msg.CHOICE_YES : msg.CHOICE_NO}" />