akretion / factur-x

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

Ability to detach any xml file #32

Open RedHotUnicorn opened 1 year ago

RedHotUnicorn commented 1 year ago

First of all your lib definitely helped me in my work.

But I faced with issue with names of inner xml.

You have specified the next names of inner xml to detach as default

FACTURX_FILENAME = 'factur-x.xml'
ZUGFERD_FILENAMES = ['zugferd-invoice.xml', 'ZUGFeRD-invoice.xml']
ORDERX_FILENAME = 'order-x.xml'
ALL_FILENAMES = [FACTURX_FILENAME] + ZUGFERD_FILENAMES + [ORDERX_FILENAME]

and also you have an ability to setup the custom names. But there is no ability just detach any xml that would be found in pdf. What if the name will be changed

For example I faced pdf-bill with xml inside without extention: ZUGFeRD-invoice

alexis-via commented 8 months ago

Good debate: should we support invoices that don't comply with the standard ? Or should we put pressure on the issuer of the invoice so that he complies with the standard ? Did you report the problem to the issuer of the invoice ?