diff --git a/src/main/java/com/pnuema/java/barcode/symbologies/UPCE.java b/src/main/java/com/pnuema/java/barcode/symbologies/UPCE.java index b4c59fe..2cfec2a 100644 --- a/src/main/java/com/pnuema/java/barcode/symbologies/UPCE.java +++ b/src/main/java/com/pnuema/java/barcode/symbologies/UPCE.java @@ -96,7 +96,7 @@ private String convertUPCAToUPCE() { int numericProductCode = Integer.parseInt(productCode); - if (manufacturer.endsWith("000") || manufacturer.endsWith("100") || manufacturer.endsWith("200") && numericProductCode <= 999) { + if ((manufacturer.endsWith("000") || manufacturer.endsWith("100") || manufacturer.endsWith("200")) && numericProductCode <= 999) { //rule 1 UPCECode += manufacturer.substring(0, 2); //first two of manufacturer UPCECode += productCode.substring(2, 5); //last three of product