From 95c49ebb2592c243fc74562d75b2fad74e4ce6c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 30 Nov 2019 01:22:11 +0100 Subject: [PATCH] Product-only: - the bar code has priority over product number which are not the same MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../helper/product/FinancialsProductWebViewHelperBean.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); -- 2.39.5