Skip to content

Commit

Permalink
Merge branch 'qa' of https://github.com/OpenPEPPOL/logistics-bis into qa
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenErlandsson committed Oct 24, 2023
2 parents 97404d1 + 08afe61 commit 07e6f39
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/sch/parts/PEPPOL-M-T120.sch
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</rule>

<rule context="cac:DespatchLine/cac:Item/cac:CommodityClassification">
<assert id="PEPPOL-T120-R040" test="((normalize-space(cbc:ItemClassificationCode/listID) = 'ZZZ') and (cbc:ItemClassificationCode/name)) or (normalize-space(cbc:ItemClassificationCode/listID) != 'ZZZ') or not (cbc:ItemClassificationCode)" flag="warning">A name must be provided if the listID is "ZZZ".</assert>
<assert id="PEPPOL-T120-R040" test="((normalize-space(cbc:ItemClassificationCode/listID) = 'ZZZ') and (cbc:ItemClassificationCode/name)) or (normalize-space(cbc:ItemClassificationCode/listID) != 'ZZZ') or (not cbc:ItemClassificationCode)" flag="warning">A name must be provided if the listID is "ZZZ".</assert>
</rule>

<rule context="cac:AdditionalDocumentReference">
Expand Down
9 changes: 9 additions & 0 deletions structure/source/ubl-advanced-despatch-advice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,15 @@
<?unitCode-Description The unit of measure that applies to the Net Weight.?>
<?unitCode-usage Mandatory?>
</cbc:NetWeightMeasure>
<cbc:NetVolumeMeasure unitCode="MTQ">12.3
<?Name Net Volume Measure ?>
<?Description Net volume of the Hazardous item. ?>
<?Cardinality 0..1?>
<?unitCode-CodeList UNECERec20?>
<?unitCode-Name Measure unit of measure?>
<?unitCode-Description The unit of measure that applies to the Net Volume.?>
<?unitCode-usage Mandatory?>
</cbc:NetVolumeMeasure>
</cac:HazardousItem>

<cac:AdditionalItemProperty>
Expand Down
7 changes: 5 additions & 2 deletions target/schematron/PEPPOLBIS-T120.sch
Original file line number Diff line number Diff line change
Expand Up @@ -1808,11 +1808,14 @@
<assert id="PEPPOL-T120-R007"
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</assert>
</rule>

<rule context="cac:DespatchLine/cac:Item/cac:CommodityClassification">
<assert id="PEPPOL-T120-R040"
test="((cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode/listID = 'ZZZ') and (cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode/name)) or (cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode/listID != 'ZZZ') or not (cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode)"
test="((normalize-space(cbc:ItemClassificationCode/listID) = 'ZZZ') and (cbc:ItemClassificationCode/name)) or (normalize-space(cbc:ItemClassificationCode/listID) != 'ZZZ') or not (cbc:ItemClassificationCode)"
flag="warning">A name must be provided if the listID is "ZZZ".</assert>
</rule>

<rule context="cac:AdditionalDocumentReference">
<assert id="PEPPOL-T120-R031"
test="(cbc:DocumentTypeCode) or (cbc:DocumentType)"
Expand Down

0 comments on commit 07e6f39

Please sign in to comment.