facho/cli.py: nuevo comando generate-invoice, el permite crear imprimir una factura xml desde un script
FossilOrigin-Name: ee656a60b05a0efb5c1f4e3ea517e28e01d7cd6b95fc5074c9f7cbf70b16c1d6
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# This file is part of facho. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from ..facho import FachoXML
|
||||
from ..facho import FachoXML, FachoXMLExtension
|
||||
import xmlsig
|
||||
import xades
|
||||
from datetime import datetime
|
||||
@@ -40,7 +40,7 @@ class FeXML(FachoXML):
|
||||
|
||||
|
||||
|
||||
class DianXMLExtensionSoftwareSecurityCode:
|
||||
class DianXMLExtensionSoftwareSecurityCode(FachoXMLExtension):
|
||||
# RESOLUCION 0001: pagina 535
|
||||
|
||||
def __init__(self, id_software: str, pin: str, invoice_ident: str):
|
||||
@@ -56,7 +56,8 @@ class DianXMLExtensionSoftwareSecurityCode:
|
||||
return dian_path, m.hexdigest()
|
||||
|
||||
|
||||
class DianXMLExtensionSigner:
|
||||
class DianXMLExtensionSigner(FachoXMLExtension):
|
||||
# RESOLUCION 0001: pagina 516
|
||||
POLICY_ID = 'https://facturaelectronica.dian.gov.co/politicadefirma/v2/politicadefirmav2.pdf'
|
||||
POLICY_NAME = 'Dian'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user