Skip to content

Commit

Permalink
POACC-592 / fixed greek rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jerouris committed Oct 4, 2023
1 parent 1608e4d commit b276f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/sch/PEPPOL-EN16931-UBL.sch
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ Last update: 2023 May release 3.0.15.
<!-- Sender Rules -->
<pattern>
<let name="dateRegExp" value="'^(0?[1-9]|[12][0-9]|3[01])[-\\/ ]?(0?[1-9]|1[0-2])[-\\/ ]?(19|20)[0-9]{2}'"/>
<let name="greekDocumentType" value="tokenize('1.1 1.2 1.3 1.4 1.5 1.6 2.1 2.2 2.3 2.4 3.1 3.2 4 5.1 5.2 6.1 6.2 7.1 8.1 8.2 11.1 11.2 11.3 11.4 11.5','\s')"/>
<let name="greekDocumentType" value="tokenize('1.1 1.6 2.1 2.4 5.1 5.2 ','\s')"/>
<let name="tokenizedUblIssueDate" value="tokenize(/*/cbc:IssueDate,'-')"/>
<!-- Invoice ID -->
<rule context="/ubl-invoice:Invoice/cbc:ID[$isGreekSender] | /ubl-creditnote:CreditNote/cbc:ID[$isGreekSender]">
Expand Down
2 changes: 1 addition & 1 deletion rules/unit-UBL-GR/GR_Validation_GRR001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:ID>061828591|11/11/2010|0|11.1||</cbc:ID>
<cbc:ID>061828591|11/11/2010|0|1.1||</cbc:ID>
<cbc:IssueDate>2010-11-11</cbc:IssueDate>
<cac:AccountingSupplierParty>
<cac:Party>
Expand Down

0 comments on commit b276f7c

Please sign in to comment.