inicio AttachedDocument
FossilOrigin-Name: 45488436368ceeb9cbe6ed5b1b63b004821b868b1eba6a80aec6db5504a21f07
This commit is contained in:
@@ -34,6 +34,7 @@ POLICY_NAME = u'Política de firma para facturas electrónicas de la República
|
||||
|
||||
NAMESPACES = {
|
||||
'facho': 'http://git.disroot.org/Etrivial/facho',
|
||||
'atd': 'urn:oasis:names:specification:ubl:schema:xsd:AttachedDocument-2',
|
||||
'fe': 'http://www.dian.gov.co/contratos/facturaelectronica/v1',
|
||||
'cac': 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2',
|
||||
'cbc': 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2',
|
||||
|
||||
@@ -2,3 +2,4 @@ from .invoice import *
|
||||
from .credit_note import *
|
||||
from .debit_note import *
|
||||
from .utils import *
|
||||
from .attached_document import *
|
||||
|
||||
14
facho/fe/form_xml/attached_document.py
Normal file
14
facho/fe/form_xml/attached_document.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from .. import fe
|
||||
|
||||
__all__ = ['AttachedDocument']
|
||||
|
||||
class AttachedDocument():
|
||||
|
||||
def __init__(self, id):
|
||||
schema = 'urn:oasis:names:specification:ubl:schema:xsd:AttachedDocument-2'
|
||||
self.fexml = fe.FeXML('AttachedDocument', schema)
|
||||
self.fexml.set_element('./cbc:ID', id)
|
||||
|
||||
def toFachoXML(self):
|
||||
return self.fexml
|
||||
|
||||
Reference in New Issue
Block a user