diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index 180979a..fef112c 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -1140,9 +1140,9 @@ class LIBO(object): return def _others_values(self, data): - version = data.get('version', '') - if version: - self._set_cell('{version}', version) + el_version = data.get('el.version', '') + if el_version: + self._set_cell('{el.version}', el_version) return def pdf(self, path, data, ods=False): @@ -2003,7 +2003,8 @@ def get_data_from_xml(invoice, values): data['pays'] = _cfdipays(doc, data, version) data['pakings'] = values.get('pakings', []) # ~ data['version'] = values['version'] - data['version'] = version + # ~ data['version'] = version + data['el.version'] = values['el.version'] return data diff --git a/source/app/models/main.py b/source/app/models/main.py index e691f70..e5c7f81 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -49,7 +49,7 @@ from settings import ( PATHS, URL, VALUES_PDF, - VERSION, + VERSION as VERSION_EMPRESA_LIBRE, RFCS, ) @@ -4034,7 +4034,7 @@ class Facturas(BaseModel): def _get_not_in_xml(self, invoice, emisor): pdf_from = Configuracion.get_('make_pdf_from') or '1' - values = {'version': VERSION} + values = {'el.version': VERSION_EMPRESA_LIBRE} values['notas'] = invoice.notas values['fechadof'] = str(emisor.fecha_dof) diff --git a/source/templates/plantilla_factura.ods b/source/templates/plantilla_factura.ods index dfaeecb..c5bd66f 100644 Binary files a/source/templates/plantilla_factura.ods and b/source/templates/plantilla_factura.ods differ