-
Notifications
You must be signed in to change notification settings - Fork 47
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
Define decimal places for node paths #64
Conversation
Hello @horstoeko Thank you for the fast work! I noticed that you changed your mind regarding the method Your new solution allows much more flexibility, however, the developer needs to know and add the super long path strings. And if these path strings change in a profile, or there is a typo in them, then the decimals are wrong and nobody notices. So I have a split opinion here. I would feel better if the php library takes care about the exact naming of the paths. As user of the php lib I don't want to be confronted with all these weird I have two suggestions. (1) In addition to your code, can we please add the following method (just a setter, no getter)?
(2) We need to change/extend the README.md. I can help with that, of course. However, for the README.md I wonder if every method in |
Hi @danielmarschall,
Good idea. I'll implement this
I will remove the part of the configuration completely from the README.md and supplement the existing document in the wiki and provide it with special instructions (especially with regard to the ``setDecimalSeparator'' you mentioned). I think that should be it. If you have no comments on the specific topic of “decimal places” (and please only on this topic), then I would merge the PR and make a new release as soon as possible. |
Thank you very much! I have reviewed everything and also verified on my code that the XML is created as expected when |
Related to #59
Reviewer: @danielmarschall
In some special cases, it may be necessary to define the number of decimal places for a specific XML path. This can now be done with an extension of the
ZugferdSettings
. An XML path is defined together with the number of digits of the number. This currently affects the serialization ofThe following methods have been added
Class customizations