Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schematron (XSLT) ERROR on [BR-CO-17]-VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals. #303

Closed
ReneVanOmmen opened this issue Nov 30, 2021 · 4 comments

Comments

@ReneVanOmmen
Copy link

Please help,

We got schematron validation error on invoice which we believe is not correct.

image

The BR-CO-17 rule compares (-325.00) with (-1710.50 * 0.19 = -324.995) but is rounded at 2 digits, which results in an error.

Is this a bug ? and how can it be solved?

        <ram:ApplicableTradeTax>
            <ram:CalculatedAmount>-325.00</ram:CalculatedAmount>
            <ram:TypeCode>VAT</ram:TypeCode>
            <ram:BasisAmount>-1710.50</ram:BasisAmount>
            <ram:CategoryCode>S</ram:CategoryCode>
            <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
        </ram:ApplicableTradeTax>

[BR-CO-17]-VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.

Thanks

@phax
Copy link
Collaborator

phax commented Mar 18, 2022

The same thing is also valid for UBL. Please see the attached example file:

Test_BR_CO_17_UBL.xml.txt

@oriol
Copy link
Collaborator

oriol commented Mar 28, 2022

This example file does not raise BR-CO-17

@oriol
Copy link
Collaborator

oriol commented Apr 8, 2022

Closing the issue as we cannot reproduce the error

@oriol oriol closed this as completed Apr 8, 2022
@phax
Copy link
Collaborator

phax commented Apr 8, 2022

The original error occurred with 1.3.3 of the validation artefacts and I confirm this.
I also checked with the 1.3.4 versions and could reproduce the error.
Since 1.3.5 the error is gone for the CII issue (fixed with #256 and 7337db6 )

Errors in 1.3.4:
grafik

Error in 1.3.5:
grafik

So this particular issue should have been solved with "XRechnung Schematron 1.6.0 compatible with XRechnung 2.1.1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants