invoice-x / factur-x-ng

Python lib for Factur-X, the e-invoicing standard for France and Germany
Other
34 stars 8 forks source link

Fields not present in Base template #27

Open duskybomb opened 6 years ago

duskybomb commented 6 years ago

Even though these two have _required: true in fields.yml still they are not there in base template which is embedded to PDFs not having any embedded xml.

m3nu commented 6 years ago

You can look up the official specs documents to see if they require them. ram:LineTotalAmount is probably required. ram:Name could default to "invoice".

duskybomb commented 6 years ago

I checked the official factur-x examples (they are same as sample invoices in factur-x library) and they too don't have the two fields listed above.

duskybomb commented 6 years ago

Now to export a json we are validating the xml first, we now need to fix LineTotalAmount and Name. As you suggested for Name we can use "invoice". What should we with LineTotalAmount. Just add it to the templates where it is missing?

m3nu commented 6 years ago

LineTotalAmount is my amount_untaxed. So it's quite important and the user needs to set it themselves.

duskybomb commented 6 years ago

We need files with LineTotalAmount and Name , so should I add them to the XML of invoices in sample invoices (for testing and other things)?

duskybomb commented 6 years ago

I was trying to add these and I did, but now I am getting validation issue because even their respective XSDs don't have LineTotalAmount and Name. Maybe they are non-required fields?