// Is a product set?
if (product instanceof Product) {
// Is product number given?
- if (product.getProductBarCodeNumber()!= null) {
+ if (product.getProductBarCodeNumber() != null) {
// Prepend it
sb.append(this.getMessageFromBundle("BARCODE")).append(" "); //NOI18N
sb.append(product.getProductBarCodeNumber());
// Add price
sb.append(" ("); //NOI18N
- sb.append(this.localizationController.formatCurrency(product.getProductGrossPrice().floatValue()));
+ sb.append(this.localizationController.formatFloatNumber(product.getProductGrossPrice().floatValue()));
sb.append(" "); //NOI18N
sb.append(product.getProductCurrencyCode());
+
+ // Is tax rate given?
+ if (product.getProductTaxRate() != null) {
+ // Add tax rate, formatted after current locale
+ sb.append(", ").append(this.localizationController.formatFloatNumber(product.getProductTaxRate().floatValue())).append("%"); //NOI18N
+ }
+
+ // Close bracket
sb.append(")"); //NOI18N
}
ADMIN_EDIT_GENERIC_PRODUCT_MINIMUM_DATA=Sie koennen hier alle Werte \u00e4ndern aber geben oder waehlen Sie mindestens die markierten (*) ein/aus.
BUTTON_ADMIN_EDIT_GENERIC_PRODUCT=Allgemeines Produkt \u00e4ndern
ADMIN_PRODUCT_NUMBER_HEADER=Produktnummer:
-NO_PRODUCT_NUMBER_ASSIGNED=Keine Produktnummer zugewiesen.
+ADMIN_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.
ADMIN_EDIT_PRODUCT_CATEGORY_TITLE=Produktkategorie mit Id {0} editieren:
ADMIN_PRODUCT_CATEGORY_NOT_UPDATED=Sie haben die Produktkategorie nicht ge\u00e4ndert.
SHOWN_IN_STATISTICS_HEADER=In Statistiken angezeigt:
+ADMIN_NO_PRODUCT_FSC_NUMBER_ASSIGNED=Das Produkt hat keine FSC-Nummer zugewiesen.
ADMIN_EDIT_GENERIC_PRODUCT_MINIMUM_DATA=You can edit all values here but enter or select at least all marked (*) values.
BUTTON_ADMIN_EDIT_GENERIC_PRODUCT=Change generic product
ADMIN_PRODUCT_NUMBER_HEADER=Product number:
-NO_PRODUCT_NUMBER_ASSIGNED=No product number assigned.
+ADMIN_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.
ADMIN_EDIT_PRODUCT_CATEGORY_TITLE=Edit product category Id {0}:
ADMIN_PRODUCT_CATEGORY_NOT_UPDATED=You have not changed the product category.
SHOWN_IN_STATISTICS_HEADER=Shown in statistics:
+ADMIN_NO_PRODUCT_FSC_NUMBER_ASSIGNED=The product has no FSC number assigned.
<p:outputLabel value="#{product.PRODUCT_NUMBER_HEADER}" title="#{product.PRODUCT_NUMBER_TITLE}" />
<h:outputText value="#{productListController.selectedProduct.productNumber}" rendered="#{not empty productListController.selectedProduct.productNumber}" />
- <h:outputText value="#{product.NO_PRODUCT_NUMBER_ASSIGNED}" rendered="#{empty productListController.selectedProduct.productNumber}" />
+ <h:outputText value="#{product.ADMIN_NO_PRODUCT_NUMBER_ASSIGNED}" rendered="#{empty productListController.selectedProduct.productNumber}" />
<p:outputLabel value="#{product.BARCODE_NUMBER_HEADER}" title="#{product.PRODUCT_BARCODE_NUMBER_TITLE}" />
<h:outputText value="#{product.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="#{product.ADMIN_PRODUCT_FSC_NUMBER_HEADER}" title="#{product.PRODUCT_FSC_NUMBER_TITLE}" />
- <h:outputText value="#{productListController.selectedProduct.productFscNumber}" />
+ <h:outputText value="#{productListController.selectedProduct.productFscNumber}" rendered="#{not empty productListController.selectedProduct.productFscNumber}" />
+ <h:outputText value="#{product.ADMIN_NO_PRODUCT_FSC_NUMBER_ASSIGNED}" rendered="#{empty productListController.selectedProduct.productFscNumber}" />
<p:outputLabel value="#{msg.AVAILABLE_HEADER}" title="#{product.PRODUCT_AVAILABILITY_TITLE}" />
<h:outputText value="#{productListController.selectedProduct.productAvailability ? msg.CHOICE_YES : msg.CHOICE_NO}" />