From: Roland Häder Date: Sat, 30 Nov 2019 00:22:11 +0000 (+0100) Subject: Product-only: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95c49ebb2592c243fc74562d75b2fad74e4ce6c8;p=jfinancials-war.git Product-only: - the bar code has priority over product number which are not the same Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/helper/product/FinancialsProductWebViewHelperBean.java b/src/java/org/mxchange/jfinancials/beans/helper/product/FinancialsProductWebViewHelperBean.java index 5b55fcc9..440e4de0 100644 --- a/src/java/org/mxchange/jfinancials/beans/helper/product/FinancialsProductWebViewHelperBean.java +++ b/src/java/org/mxchange/jfinancials/beans/helper/product/FinancialsProductWebViewHelperBean.java @@ -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());