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

ZUGFeRD2PullProvider adds null VATID #101

Closed
swsch opened this issue Jul 9, 2019 · 1 comment
Closed

ZUGFeRD2PullProvider adds null VATID #101

swsch opened this issue Jul 9, 2019 · 1 comment

Comments

@swsch
Copy link
Contributor

swsch commented Jul 9, 2019

ZUGFeRD2PullProvider.java, lines 382 to 384 always add a <ram:SpecifiedTaxRegistration> element, although the spec states on p. 64 "Kardinalität 0..1", i.e. optional.

If you don't set the buyer's VATID, you get

        <ram:SpecifiedTaxRegistration> 
          <ram:ID schemeID="VA">null</ram:ID> 
        </ram:SpecifiedTaxRegistration> 

which in turn fails verification with ZUV (I wonder how DEnull would fare, though :-).

What do the comments //$NON-NLS-1$ in this neighbourhood mean?

If I were to touch this method generateXML, I probably could not refrain myself from using a StringBuilder and deleting the old (?) commented parts.

@jstaerk
Copy link
Collaborator

jstaerk commented Jul 13, 2019

thanks, merged.
//$NON-NLS-1$
is the (eclipse) string literals silencer, e.g. if you localize (eclipse "externalize Strings") into .properties files

String abc="invoice"; //$NON-NLS-1$
will not ask for a translation for "invoice" because it is considered identical in all languages.

@swsch swsch closed this as completed Jul 15, 2019
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

2 participants