Skip to content

Commit

Permalink
add check to control #242
Browse files Browse the repository at this point in the history
  • Loading branch information
oriol committed Oct 20, 2020
1 parent 92761e5 commit 6f754f7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion test/Invoice-unit-UBL/BR-CO-16.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,26 @@
</cac:LegalMonetaryTotal>
</Invoice>
</test>

<test>
<assert>
<description>Does not fire when adding PayableRoundingAmount = 0. </description>
<success>BR-CO-16</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:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">10781.25</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">10781.25</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">12829.69</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="EUR">0</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="EUR">0</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID="EUR">12829.69</cbc:PrepaidAmount>
<cbc:PayableRoundingAmount currencyID="EUR">0</cbc:PayableRoundingAmount>
<cbc:PayableAmount currencyID="EUR">0</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
</Invoice>
</test>

</testSet>

0 comments on commit 6f754f7

Please sign in to comment.