Stamp by Pac

This commit is contained in:
Mauricio Baeza 2020-12-28 22:28:52 -06:00
parent 75e4f2e1c0
commit 95399798f8
2 changed files with 6 additions and 5 deletions

View File

@ -52,6 +52,7 @@ import seafileapi
from settings import DEBUG, DB_COMPANIES, PATHS from settings import DEBUG, DB_COMPANIES, PATHS
from .comercio import PACComercioDigital from .comercio import PACComercioDigital
from .pac import Finkok as PACFinkok
# ~ from .finkok import PACFinkok # ~ from .finkok import PACFinkok
@ -74,7 +75,7 @@ if DEBUG:
PSQL = 'psql -h localhost -U postgres' PSQL = 'psql -h localhost -U postgres'
PACS = { PACS = {
# ~ '': PACFinkok, 'finkok': PACFinkok,
'comercio': PACComercioDigital, 'comercio': PACComercioDigital,
} }

View File

@ -5206,10 +5206,10 @@ class Facturas(BaseModel):
anticipo = False anticipo = False
msg = 'Factura timbrada correctamente' msg = 'Factura timbrada correctamente'
if pac: # ~ if pac:
result = utils.xml_stamp(obj.xml, auth, pac) result = utils.xml_stamp(obj.xml, auth, pac)
else: # ~ else:
result = util.timbra_xml(obj.xml, auth) # ~ result = util.timbra_xml(obj.xml, auth)
if result['ok']: if result['ok']:
obj.xml = result['xml'] obj.xml = result['xml']