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

Validating prices is whitespace sensitive #687

Open
kaikuchn opened this issue Jan 16, 2025 · 0 comments
Open

Validating prices is whitespace sensitive #687

kaikuchn opened this issue Jan 16, 2025 · 0 comments

Comments

@kaikuchn
Copy link

Hi,

I'm unsure if this is intended / just the way it is specified. However, we were caught by surprise when validating our XML that checking the maximum number of decimals, e.g. for BT-116, is whitespace sensitive.

Here is the error we got:

<error type="4" location="/*:CrossIndustryInvoice[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:SupplyChainTradeTransaction[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:ApplicableHeaderTradeSettlement[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][1]/*:ApplicableTradeTax[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][1]" criterion="string-length(substring-after(ram:BasisAmount,'.'))&lt;=2">[BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2. [ID FX-SCH-A-000053] from /xslt/ZF_232/FACTUR-X_BASIC.xslt)</error>

Is it possible to extend the check such that it trims whitespace?

Best regards,
Kai

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

No branches or pull requests

1 participant