Skip to content

Commit

Permalink
Merge branch '84-fix-test-cases' into 'master'
Browse files Browse the repository at this point in the history
Resolve "fix test cases"

Closes #84

See merge request xrechnung/validator-configuration-xrechnung!75
  • Loading branch information
bdewein committed Jun 20, 2024
2 parents ddcdd62 + 110ad4b commit bbd6c8d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ This release is compatible with XRechnung ?.?.?
* set CII-SR-452 customLevel to "error" to enforce correct cardinality of BT-9 "Payment due date" and BT-20 "Payment terms" in CII
* set CII-SR-454 customLevel to "error" to enforce exactly one BG-30 "Line VAT information" within BG-25 "Invoice line" in CII
* tests on BR-AE-02, BR-AE-03, and BR-AE-04 moved from `src/test/unexpected` to `src/test/cen-unit-tests`
* tests `cen-unit-test/cii-br-s-08-rounding-rule.xml` and `unexpected/br-co-23-reason-codes.xml` to comply with BR-CL-23
* tests `cen-unit-test/cii-br-e-10-test.xml` and `cen-unit-test/cii-br-e-10-test-2.xml` to comply with CII-SR-461

## 2023-11-15

Expand Down
3 changes: 0 additions & 3 deletions src/test/cen-unit-test/cii-br-e-10-test-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@
<ram:ExemptionReason>als gemeinnützig anerkannt</ram:ExemptionReason>
<ram:BasisAmount>0</ram:BasisAmount>
<ram:CategoryCode>E</ram:CategoryCode>
<ram:TaxPointDate>
<udt:DateString format="102">20180413</udt:DateString>
</ram:TaxPointDate>
<ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:BillingSpecifiedPeriod>
Expand Down
3 changes: 0 additions & 3 deletions src/test/cen-unit-test/cii-br-e-10-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@
<?xmute mutator="remove" schematron-invalid="cencii:BR-E-10" id="cencii-BR-E-10-test-2" description="exemptionReason or exemptionReasonCode should be provided"?>
<!-- BT-121 -->
<ram:ExemptionReasonCode>vatex-eu-132-1a</ram:ExemptionReasonCode>
<ram:TaxPointDate>
<udt:DateString format="102">20180413</udt:DateString>
</ram:TaxPointDate>
<ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:BillingSpecifiedPeriod>
Expand Down
6 changes: 3 additions & 3 deletions src/test/cen-unit-test/cii-br-s-08-rounding-rule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="PCE">2</ram:BilledQuantity>
<ram:BilledQuantity unitCode="XBE">2</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
Expand All @@ -109,7 +109,7 @@
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="PCE">1</ram:BilledQuantity>
<ram:BilledQuantity unitCode="XBE">1</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
Expand All @@ -135,7 +135,7 @@
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="PCE">2</ram:BilledQuantity>
<ram:BilledQuantity unitCode="XBE">2</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
Expand Down
4 changes: 2 additions & 2 deletions src/test/unexpected/cii-br-co-23-reason-codes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
<ram:SpecifiedLineTradeAgreement>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>12</ram:ChargeAmount>
<ram:BasisQuantity unitCode="0">1000.00000</ram:BasisQuantity>
<ram:BasisQuantity unitCode="E48">1000.00000</ram:BasisQuantity>
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="0">1.000</ram:BilledQuantity>
<ram:BilledQuantity unitCode="E48">1.000</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
Expand Down

0 comments on commit bbd6c8d

Please sign in to comment.