share
- Shared by
- Juha Ikävalko Netum Oy / Truugo Team
- Shared with
- John Smith @companyx.com
- Expires
- 2098-05-30
test case
- Test profile
- View profile UBL 2.0 Invoice - DEMO
- File tested
-
View instance
UBL-Invoice-2.0 sample with errors.xml - Report
- Print report
- Status
-
Set status to DONE to inform the author when reported errors have been resolved.
Truugo is a message validation platform to setup and share own validators for manual and automated scenarios. Learn more »
Test report
Case overview
Profile | UBL 2.0 Invoice - DEMO | INVALID Instance failed 4 test phases |
---|---|---|
Standard | UBL 2.0 | |
Message type | Invoice | |
Instance | UBL-Invoice-2.0 sample with errors.xml | |
User | Juha Ikävalko | |
Time | 2018-06-20 09:43:29Z |
Test phases
Phase | Importance | Result | |
---|---|---|---|
1 | Preconditions Preconditions for this test case. These condition must be fullfilled to continue to actual validation. | CRITICAL | PASSED |
2 | Base conditions Validation for basic UBL message requirements. There is no point to continue validation if these requirements are not fulfilled. | CRITICAL | PASSED |
3 | Message structure Validation against UBL-Invoice-2.0 W3C XML Schema provided by OASIS. | MANDATORY | FAILED |
4 | Mandatory information Validation for elements/data which must exist on each Invoice message. | MANDATORY | FAILED |
5 | Format constraints Validation for data format constraints. | MANDATORY | FAILED |
6 | Integrity constraints Validation for integrity constraints. | MANDATORY | FAILED |
- CRITICAL
- Phase must be passed to continue validation
- MANDATORY
- Phase must be passed to pass the test successfully
- RECOMMENDED
- Phase provides informative feedback on best practices etc.
Feedback
Format constraints2 errors
5.1 | Payment means code |
ConditionPayment means code is based on UN/ECE 4461 codelist version D03A. ErrorLine 113: /Invoice/cac:PaymentMeans/cbc:PaymentMeansCode="Z20" |
5.2 | Allowance type |
ConditionAllowance reason code is either trade discount "17" or deduction for late delivery "20". ErrorLine 167: /Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode="18" |
Integrity constraints2 errors
6.1 | Invoice issue date vs due date |
ConditionInvoice due date is later than invoice issue date. ErrorLine 114: /Invoice/cac:PaymentMeans/cbc:PaymentDueDate = "2004-07-21" (Line 9, /Invoice/cbc:IssueDate = "2005-06-27") |
6.2 | Tax subtotal sum |
ConditionTax subtotal matches sum of tax amounts in each tax category. ErrorLine 172: /Invoice/cac:TaxTotal/cbc:TaxAmount = 17.50 <> 17.40 |