From 37897725d7c7a88383f39a18286f2b222a43acc7 Mon Sep 17 00:00:00 2001 From: Hans Petersen <h.petersen@nleyes.com> Date: Wed, 30 Oct 2024 09:26:23 +0100 Subject: [PATCH] Initial commit --- .../catalogue-wo-response-use-case-5.xml | 18 +++++++---- rules/examples/Order use cases/UC4_Order.xml | 28 ++++++++-------- rules/examples/OrderAgreement_Example.xml | 32 ++++++++++++------- rules/examples/PunchOut_Example.xml | 4 ++- 4 files changed, 49 insertions(+), 33 deletions(-) diff --git a/rules/examples/Cataloge wo response use cases/catalogue-wo-response-use-case-5.xml b/rules/examples/Cataloge wo response use cases/catalogue-wo-response-use-case-5.xml index 94c162a4..3de2d9aa 100644 --- a/rules/examples/Cataloge wo response use cases/catalogue-wo-response-use-case-5.xml +++ b/rules/examples/Cataloge wo response use cases/catalogue-wo-response-use-case-5.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <Catalogue xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" - xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" - xmlns="urn:oasis:names:specification:ubl:schema:xsd:Catalogue-2"> + xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" + xmlns="urn:oasis:names:specification:ubl:schema:xsd:Catalogue-2"> <cbc:CustomizationID>urn:fdc:peppol.eu:poacc:trns:catalogue:3</cbc:CustomizationID> <cbc:ProfileID>urn:fdc:peppol.eu:poacc:bis:catalogue_wo_response:3</cbc:ProfileID> <cbc:ID>1387</cbc:ID> @@ -204,7 +204,8 @@ <cac:ItemSpecificationDocumentReference> <cbc:ID>12345</cbc:ID> <cac:Attachment> - <cbc:EmbeddedDocumentBinaryObject mimeCode="image/png" filename="image1.png">UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> + <cbc:EmbeddedDocumentBinaryObject mimeCode="image/png" filename="image1.png"> + UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> <cac:ExternalReference> <cbc:URI>http://www.supplier.com/image1.png</cbc:URI> </cac:ExternalReference> @@ -214,7 +215,8 @@ <cbc:IdentificationCode>NO</cbc:IdentificationCode> </cac:OriginCountry> <cac:CommodityClassification> - <cbc:ItemClassificationCode listID="MP" listVersionID="19.0501" name="Office furniture">20101601</cbc:ItemClassificationCode> + <cbc:ItemClassificationCode listID="MP" listVersionID="19.0501" + name="Office furniture">20101601</cbc:ItemClassificationCode> </cac:CommodityClassification> <cac:TransactionConditions> <cbc:ActionCode>CT</cbc:ActionCode> @@ -299,7 +301,9 @@ </cac:TaxScheme> </cac:ClassifiedTaxCategory> <cac:AdditionalItemProperty> - <cbc:ID schemeDataURI="sdfdf" schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> + <cbc:ID + schemeDataURI="https://define.cobuilder.no/77e416eb-a363-4258-a04e-171d843a6460/2022/" + schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> <cbc:Name>Paper weight in grams</cbc:Name> <cbc:Value>18</cbc:Value> </cac:AdditionalItemProperty> @@ -307,7 +311,7 @@ </cac:CatalogueLine> <cac:CatalogueLine><!-- This line handles an item with a deposit --> <cbc:ID>3</cbc:ID> - <cac:RequiredRelatedItem> + <cac:RequiredRelatedItem> <cbc:ID>1234</cbc:ID> <cbc:Quantity unitCode="EA">1</cbc:Quantity> </cac:RequiredRelatedItem> @@ -342,4 +346,4 @@ </cac:SellersItemIdentification> </cac:Item> </cac:CatalogueLine> -</Catalogue> +</Catalogue> \ No newline at end of file diff --git a/rules/examples/Order use cases/UC4_Order.xml b/rules/examples/Order use cases/UC4_Order.xml index 13f66da6..fa6c26e1 100644 --- a/rules/examples/Order use cases/UC4_Order.xml +++ b/rules/examples/Order use cases/UC4_Order.xml @@ -1,15 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <Order xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns="urn:oasis:names:specification:ubl:schema:xsd:Order-2" - xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" - xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> + xmlns="urn:oasis:names:specification:ubl:schema:xsd:Order-2" + xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" + xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> <cbc:CustomizationID>urn:fdc:peppol.eu:poacc:trns:order:3</cbc:CustomizationID> <cbc:ProfileID>urn:fdc:peppol.eu:poacc:bis:order_only:3</cbc:ProfileID> <cbc:ID>5</cbc:ID> <cbc:IssueDate>2013-07-01</cbc:IssueDate> <cbc:IssueTime>05:10:10</cbc:IssueTime> <cbc:Note>Notes regarding the order</cbc:Note> - <cbc:DocumentCurrencyCode listID="ISO4217">EUR</cbc:DocumentCurrencyCode> + <cbc:DocumentCurrencyCode listID="ISO4217">EUR</cbc:DocumentCurrencyCode> <cbc:AccountingCost>MAFO</cbc:AccountingCost> <cac:ValidityPeriod> <cbc:EndDate>2013-07-30</cbc:EndDate> @@ -27,7 +27,7 @@ <cbc:ID>100</cbc:ID> <cbc:DocumentType>Blueprint</cbc:DocumentType> <cac:Attachment> - <cac:ExternalReference> + <cac:ExternalReference> <cbc:URI>http://upload.wikimedia.org/wikipedia/commons/1/10/LaBelle_Blueprint.jpg</cbc:URI> </cac:ExternalReference> </cac:Attachment> @@ -45,7 +45,7 @@ <cbc:Name>City Hospital</cbc:Name> </cac:PartyName> <cac:PostalAddress> - <cbc:StreetName>Main street 4</cbc:StreetName> + <cbc:StreetName>Main street 4</cbc:StreetName> <cbc:AdditionalStreetName>Back door</cbc:AdditionalStreetName> <cbc:CityName>Eurocity</cbc:CityName> <cbc:PostalZone>11155</cbc:PostalZone> @@ -96,7 +96,7 @@ <cac:PartyLegalEntity> <cbc:RegistrationName>Cod Liver Oil Limited</cbc:RegistrationName> </cac:PartyLegalEntity> - <cac:Contact> + <cac:Contact> <cbc:Name>Öystein</cbc:Name> <cbc:Telephone>+47555444333</cbc:Telephone> <cbc:ElectronicMail>oystein@codliveroil.no</cbc:ElectronicMail> @@ -196,7 +196,7 @@ <cbc:AllowanceChargeReason>Agreed discount</cbc:AllowanceChargeReason> <cbc:Amount currencyID="EUR">10</cbc:Amount> </cac:AllowanceCharge> - <cac:TaxTotal> + <cac:TaxTotal> <cbc:TaxAmount currencyID="EUR">5</cbc:TaxAmount> </cac:TaxTotal> <cac:AnticipatedMonetaryTotal> @@ -223,8 +223,8 @@ </cac:RequestedDeliveryPeriod> </cac:Delivery> <cac:OriginatorParty> - <cac:PartyIdentification> - <cbc:ID schemeID="0088">7300010000001</cbc:ID> + <cac:PartyIdentification> + <cbc:ID schemeID="0088">7300010000001</cbc:ID> </cac:PartyIdentification> <cac:PartyName> <cbc:Name>Martin</cbc:Name> @@ -252,7 +252,7 @@ <cbc:ItemClassificationCode listID="MP">76455</cbc:ItemClassificationCode> </cac:CommodityClassification> <cac:ClassifiedTaxCategory> - <cbc:ID schemeID="UNCL5305">S</cbc:ID> + <cbc:ID schemeID="UNCL5305">S</cbc:ID> <cbc:Percent>10</cbc:Percent> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> @@ -263,11 +263,13 @@ <cbc:Value>Left-handed</cbc:Value> </cac:AdditionalItemProperty> <cac:AdditionalItemProperty> - <cbc:ID schemeDataURI="sdfdf" schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> + <cbc:ID + schemeDataURI="https://define.cobuilder.no/77e416eb-a363-4258-a04e-171d843a6460/2022/" + schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> <cbc:Name>Purpose</cbc:Name> <cbc:Value>Snow</cbc:Value> </cac:AdditionalItemProperty> </cac:Item> </cac:LineItem> </cac:OrderLine> -</Order> +</Order> \ No newline at end of file diff --git a/rules/examples/OrderAgreement_Example.xml b/rules/examples/OrderAgreement_Example.xml index b7659e53..2ef2fc02 100644 --- a/rules/examples/OrderAgreement_Example.xml +++ b/rules/examples/OrderAgreement_Example.xml @@ -11,8 +11,8 @@ --> <OrderResponse xmlns="urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2" - xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" - xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> + xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" + xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> <cbc:CustomizationID>urn:fdc:peppol.eu:poacc:trns:order_agreement:3</cbc:CustomizationID> <cbc:ProfileID>urn:fdc:peppol.eu:poacc:bis:order_agreement:3</cbc:ProfileID> <cbc:ID>0263bf48-9a55-4d15-adf5-2c2921036d1c</cbc:ID> @@ -32,7 +32,8 @@ <cbc:ID>147852</cbc:ID> <cbc:DocumentType>Timesheet</cbc:DocumentType> <cac:Attachment> - <cbc:EmbeddedDocumentBinaryObject mimeCode="image/tiff" filename="hours-spend.csv">UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> + <cbc:EmbeddedDocumentBinaryObject mimeCode="image/tiff" filename="hours-spend.csv"> + UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> <cac:ExternalReference> <cbc:URI>http://www.example.com/index.html</cbc:URI> </cac:ExternalReference> @@ -47,7 +48,7 @@ <cac:PartyIdentification> <cbc:ID schemeID="0184">DK12345678</cbc:ID> </cac:PartyIdentification> - + <cac:PostalAddress> <cbc:StreetName>Storgt. 12</cbc:StreetName> <cbc:AdditionalStreetName>4. etasje</cbc:AdditionalStreetName> @@ -127,10 +128,12 @@ <cbc:ChargeIndicator>true</cbc:ChargeIndicator> <cbc:AllowanceChargeReasonCode>ABK</cbc:AllowanceChargeReasonCode> <cbc:AllowanceChargeReason>Miscellaneous services</cbc:AllowanceChargeReason> -<!-- <cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric> ---> <cbc:Amount currencyID="EUR">2.00</cbc:Amount> -<!-- <cbc:BaseAmount currencyID="EUR">32.50</cbc:BaseAmount> ---> <cac:TaxCategory> + <!-- <cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric> +--> + <cbc:Amount currencyID="EUR">2.00</cbc:Amount> + <!-- <cbc:BaseAmount currencyID="EUR">32.50</cbc:BaseAmount> +--> + <cac:TaxCategory> <cbc:ID>S</cbc:ID> <cbc:Percent>25</cbc:Percent> <cac:TaxScheme> @@ -160,7 +163,7 @@ <cbc:TaxAmount currencyID="EUR">7.81</cbc:TaxAmount> <cac:TaxCategory> <cbc:ID>S</cbc:ID> - <cbc:Percent>25</cbc:Percent> + <cbc:Percent>25</cbc:Percent> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> </cac:TaxScheme> @@ -218,7 +221,9 @@ <cbc:DocumentTypeCode>TRADE_ITEM_DESCRIPTION</cbc:DocumentTypeCode> <cbc:DocumentType>Timesheet</cbc:DocumentType> <cac:Attachment> - <cbc:EmbeddedDocumentBinaryObject mimeCode="image/tiff" filename="hours-spend.csv">UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> + <cbc:EmbeddedDocumentBinaryObject mimeCode="image/tiff" + filename="hours-spend.csv"> + UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</cbc:EmbeddedDocumentBinaryObject> <cac:ExternalReference> <cbc:URI>http://www.example.com/index.html</cbc:URI> </cac:ExternalReference> @@ -238,7 +243,10 @@ </cac:TaxScheme> </cac:ClassifiedTaxCategory> <cac:AdditionalItemProperty> - <cbc:ID schemeDataURI="sdfdf" schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> + <cbc:ID + schemeDataURI="https://define.cobuilder.no/77e416eb-a363-4258-a04e-171d843a6460/2022/" + schemeID="ISO22057" schemeVersionID="2022"> + 77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> <cbc:Name>Length</cbc:Name> <cbc:NameCode listID="NN">test</cbc:NameCode> <cbc:Value>30 mm</cbc:Value> @@ -276,4 +284,4 @@ </cac:Item> </cac:LineItem> </cac:OrderLine> -</OrderResponse> +</OrderResponse> \ No newline at end of file diff --git a/rules/examples/PunchOut_Example.xml b/rules/examples/PunchOut_Example.xml index 5630b08b..391f6aaf 100644 --- a/rules/examples/PunchOut_Example.xml +++ b/rules/examples/PunchOut_Example.xml @@ -165,7 +165,9 @@ </cac:TaxScheme> </cac:ClassifiedTaxCategory> <cac:AdditionalItemProperty> - <cbc:ID schemeDataURI="sdfdf" schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> + <cbc:ID + schemeDataURI="https://define.cobuilder.no/77e416eb-a363-4258-a04e-171d843a6460/2022/" + schemeID="ISO22057" schemeVersionID="2022">77e416eb-a363-4258-a04e-171d843a6460</cbc:ID> <cbc:Name>Paper weight in grams</cbc:Name> <cbc:Value>18</cbc:Value> </cac:AdditionalItemProperty>