- the bar code has priority over product number which are not the same
Signed-off-by: Roland Häder <roland@mxchange.org>
// 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());