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 .comercio import PACComercioDigital
from .pac import Finkok as PACFinkok
# ~ from .finkok import PACFinkok
@ -74,7 +75,7 @@ if DEBUG:
PSQL = 'psql -h localhost -U postgres'
PACS = {
# ~ '': PACFinkok,
'finkok': PACFinkok,
'comercio': PACComercioDigital,
}

View File

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