Skip to content

Commit

Permalink
Fix related to POAC-735
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForsberg-Ecru committed Feb 12, 2024
1 parent 1489b8f commit 2b300b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rules/sch/parts/function/checkSEOrgnr.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Function for Swedish organisation numbers (0007) -->
<function xmlns="http://www.w3.org/1999/XSL/Transform" name="u:checkSEOrgnr" as="xs:boolean">
<param name="number" as="xs:string"/>
<function xmlns="http://www.w3.org/1999/XSL/Transform" name="u:checkSEOrgnr" as="xs:boolean">
<!-- Function for Swedish organisation numbers (0007) -->
<param name="number" as="xs:string"/>
<choose>
<!-- Check if input is numeric -->
<when test="not(matches($number, '^\d+$'))">
Expand All @@ -24,4 +23,4 @@
<sequence select="$calculatedCheckDigit = number($checkDigit)"/>
</otherwise>
</choose>
</function>
</function>

0 comments on commit 2b300b2

Please sign in to comment.