diff --git a/source/app/controllers/cfdi_xml.py b/source/app/controllers/cfdi_xml.py index c06682d..c605617 100644 --- a/source/app/controllers/cfdi_xml.py +++ b/source/app/controllers/cfdi_xml.py @@ -307,6 +307,7 @@ class CFDI(object): return def _receptor(self, datos): + datos['Nombre'] = datos['Nombre'].upper() node_name = '{}:Receptor'.format(self._pre) emisor = ET.SubElement(self._cfdi, node_name, datos) return diff --git a/source/app/models/main.py b/source/app/models/main.py index e1c9a7b..d91213d 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -1761,7 +1761,7 @@ class SATImpuestos(BaseModel): tipo = 'R' row = { - 'key': IMPUESTOS.get(values['impuesto']), + 'key': IMPUESTOS.get(values['impuesto'], '000'), 'name': values['impuesto'], 'tipo': tipo, 'tasa': abs(tasa), diff --git a/source/static/js/ui/admin.js b/source/static/js/ui/admin.js index 1da6d3e..98af3a6 100644 --- a/source/static/js/ui/admin.js +++ b/source/static/js/ui/admin.js @@ -1166,6 +1166,7 @@ var admin_taxes = [ 'CEDULAR', 'CMIC', 'SUPERVISION', + 'MANO DE OBRA', ] var admin_sat_impuestos = {cols: [{maxWidth: 15},