-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clean up XML template files #22
Comments
Should I replace data with some placeholder or a simple white-space? |
It should be an empty XML tag. Not a placeholder and not white-space. When the user assigns a value to the tag, there is a value. Else the tag is empty. Like an empty HTML tag. Putting random white space means it has a value. So it's not a good solution. |
So I tried doing this, but after removing data I am getting |
For numeric fields you should put 0 or 0.0 This will correspond to |
This might not be a good way, but this is what I intend to do:
|
What's this doing? My suggestion was to put I'm aware the the file will not validate. Before saving it, the user needs to fill the minimal required data or get an error message. Embedding an empty XML doesn't make sense anyways. If you want to keep the original sample files, you can copy them to a Of course the empty XML template can't be validated before it has values. On saving there could either be validation all the time or only validation on request with a function. |
Here is what I am doing,
|
Each invoice XML standard has a few template files, as defined in
flavors.yml
. These templates are used to add an empty XML. For now I just copied the sample files provided by the standardization bodies. These still have some sample data. This sample data should be removed soon. Else there will be confusion on what is real data and what is leftover sample data.The text was updated successfully, but these errors were encountered: