]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Product-only:
authorRoland Häder <roland@mxchange.org>
Sat, 30 Nov 2019 00:22:11 +0000 (01:22 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 30 Nov 2019 00:22:11 +0000 (01:22 +0100)
- the bar code has priority over product number which are not the same

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/beans/helper/product/FinancialsProductWebViewHelperBean.java

index 5b55fcc9e50ab8bc93f80bbb58a76fedf49672a3..440e4de01f99fca519f5972d8a3ae89bd374c4bc 100644 (file)
@@ -67,7 +67,12 @@ public class FinancialsProductWebViewHelperBean extends BaseFinancialsBean imple
                // Is a product set?
                if (product instanceof Product) {
                        // Is product number given?
-                       if (product.getProductNumber() != null) {
+                       if (product.getProductBarCodeNumber()!= null) {
+                               // Prepend it
+                               sb.append(this.getMessageFromBundle("BARCODE")).append(" "); //NOI18N
+                               sb.append(product.getProductBarCodeNumber());
+                               sb.append(", "); //NOI18N
+                       } else if (product.getProductNumber() != null) {
                                // Prepend it
                                sb.append(this.getMessageFromBundle("NUMBER")).append(" "); //NOI18N
                                sb.append(product.getProductNumber());