export: add xrechnung 2.3 + 3.0 + tests against xsd

This commit is contained in:
Frederik Jaeckel 2024-12-05 09:47:54 +01:00
parent 253cc01045
commit 5171cbae09
7 changed files with 762 additions and 10 deletions

View file

@ -123,7 +123,7 @@ class Invoice(Invoice):
def _get_template(self, version):
""" load our own template if 'version' is ours
"""
if version == 'XRechnung-2.2':
if version in ['XRechnung-2.2', 'XRechnung-2.3', 'XRechnung-3.0']:
loader = genshi.template.TemplateLoader(
os.path.join(os.path.dirname(__file__), 'template'),
auto_reload=True)