Stamp by Pac
This commit is contained in:
parent
75e4f2e1c0
commit
95399798f8
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue