-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding validation of base quantity. #244
- Loading branch information
Showing
6 changed files
with
155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="ehf-t14-base-2.0"> | ||
<assert> | ||
<description>Verify use of base quantity</description> | ||
<scope>NONAT-T14-R033</scope> | ||
</assert> | ||
<test> | ||
<assert> | ||
<success>NONAT-T14-R033</success> | ||
</assert> | ||
<CreditNote 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:CreditNote-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>1</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</CreditNote> | ||
</test> | ||
<test> | ||
<assert> | ||
<success>NONAT-T14-R033</success> | ||
</assert> | ||
<CreditNote 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:CreditNote-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>0.01</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</CreditNote> | ||
</test> | ||
<test> | ||
<assert> | ||
<warning>NONAT-T14-R033</warning> | ||
</assert> | ||
<CreditNote 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:CreditNote-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>0</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</CreditNote> | ||
</test> | ||
<test> | ||
<assert> | ||
<warning>NONAT-T14-R033</warning> | ||
</assert> | ||
<CreditNote 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:CreditNote-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>-1</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</CreditNote> | ||
</test> | ||
</testSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="ehf-t10-base-2.0"> | ||
<assert> | ||
<description>Verify use of base quantity</description> | ||
<scope>NONAT-T10-R033</scope> | ||
</assert> | ||
<test> | ||
<assert> | ||
<success>NONAT-T10-R033</success> | ||
</assert> | ||
<Invoice 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:Invoice-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>1</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<success>NONAT-T10-R033</success> | ||
</assert> | ||
<Invoice 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:Invoice-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>0.01</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<warning>NONAT-T10-R033</warning> | ||
</assert> | ||
<Invoice 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:Invoice-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>0</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<warning>NONAT-T10-R033</warning> | ||
</assert> | ||
<Invoice 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:Invoice-2"> | ||
|
||
<cac:Price> | ||
<cbc:BaseQuantity>-1</cbc:BaseQuantity> | ||
</cac:Price> | ||
|
||
</Invoice> | ||
</test> | ||
</testSet> |