From 3385e55c639a7ca5f32fb55c494140a19207948f Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Thu, 5 Dec 2024 17:32:40 +0100 Subject: [PATCH] add selection for factur-x --- locale/de.po | 8 ++++++++ locale/en.po | 8 ++++++++ setup.py | 2 +- versiondep.txt | 2 +- wizard_runreport.py | 4 ++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/locale/de.po b/locale/de.po index 00f6e09..ff22ba4 100644 --- a/locale/de.po +++ b/locale/de.po @@ -46,6 +46,14 @@ msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" msgid "CII CrossIndustryInvoice D16B" msgstr "CII CrossIndustryInvoice D16B" +msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" +msgid "Factur-X Extended" +msgstr "Factur-X Extended" + +msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" +msgid "ZUGFeRD 2.3.2" +msgstr "ZUGFeRD 2.3.2" + msgctxt "field:account_invoice_xrechnung.runrep.start,as_zip:" msgid "ZIP-File" msgstr "ZIP-Datei" diff --git a/locale/en.po b/locale/en.po index c6ad0ce..ad72eda 100644 --- a/locale/en.po +++ b/locale/en.po @@ -38,6 +38,14 @@ msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" msgid "CII CrossIndustryInvoice D16B" msgstr "CII CrossIndustryInvoice D16B" +msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" +msgid "Factur-X Extended" +msgstr "Factur-X Extended" + +msgctxt "selection:account_invoice_xrechnung.runrep.start,edocument:" +msgid "ZUGFeRD 2.3.2" +msgstr "ZUGFeRD 2.3.2" + msgctxt "field:account_invoice_xrechnung.runrep.start,as_zip:" msgid "ZIP-File" msgstr "ZIP-File" diff --git a/setup.py b/setup.py index fa92fb4..645635e 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f: major_version = 7 minor_version = 0 -requires = ['python-slugify'] +requires = ['python-slugify', 'pypdf', 'factur-x'] for dep in info.get('depends', []): if not re.match(r'(ir|res|webdav)(\W|$)', dep): if dep in modversion.keys(): diff --git a/versiondep.txt b/versiondep.txt index 32b59fc..258b3ff 100644 --- a/versiondep.txt +++ b/versiondep.txt @@ -1 +1 @@ -edocument_xrechnung;7.0.3;7.0.999;mds +edocument_xrechnung;7.0.5;7.0.999;mds diff --git a/wizard_runreport.py b/wizard_runreport.py index d182832..f84f2a8 100644 --- a/wizard_runreport.py +++ b/wizard_runreport.py @@ -15,6 +15,8 @@ sel_edocument = [ ('edocument.xrechnung.invoice-2.2', 'XRechnung UBL Invoice 2.2'), ('edocument.xrechnung.invoice-2.3', 'XRechnung UBL Invoice 2.3'), ('edocument.xrechnung.invoice-3.0', 'XRechnung UBL Invoice 3.0'), + ('edocument.facturxext.invoice', 'Factur-X Extended'), + ('edocument.facturxext.invoice-ferd', 'ZUGFeRD 2.3.2'), ('edocument.uncefact.invoice', 'CII CrossIndustryInvoice D16B'), ] @@ -22,6 +24,8 @@ edoc_versions = { 'edocument.xrechnung.invoice-2.2': 'XRechnung-2.2', 'edocument.xrechnung.invoice-2.3': 'XRechnung-2.3', 'edocument.xrechnung.invoice-3.0': 'XRechnung-3.0', + 'edocument.facturxext.invoice': 'Factur-X-1.07.2-extended', + 'edocument.facturxext.invoice-ferd': 'Factur-X-1.07.2-extended', 'edocument.uncefact.invoice': '16B-CII'}