diff --git a/target/schematron/PEPPOLBIS-T120.sch b/target/schematron/PEPPOLBIS-T120.sch index 0b39a224..9c1f10a7 100644 --- a/target/schematron/PEPPOLBIS-T120.sch +++ b/target/schematron/PEPPOLBIS-T120.sch @@ -1809,8 +1809,8 @@ test="((cbc:OutstandingQuantity) and (cbc:OutstandingReason)) or not(cbc:OutstandingQuantity)" flag="warning">An outstanding quantity reason SHOULD be provided if the despatch line contains an outstanding quantity A name must be provided if the listID is "ZZZ". + test="((cac:Item/cac:CommodityClassification/ItemClassificationCode/listID) = 'ZZZ' and not (cac:Item/cac:CommodityClassification/ItemClassificationCode/name)) or (cac:Item/cac:CommodityClassification/ItemClassificationCode/listID) != 'ZZZ'" + flag="warning">A name must be provided if the listID is "ZZZ".