FossilOrigin-Name: ce7e62d4af265150a17bf5258c488242cc27309935ab6ba2d827ff902c74580b
24 lines
638 B
Python
24 lines
638 B
Python
from .. import fe
|
|
from ..form import *
|
|
from .invoice import DIANInvoiceXML
|
|
|
|
__all__ = ['DIANCreditNoteXML']
|
|
|
|
class DIANCreditNoteXML(DIANInvoiceXML):
|
|
"""
|
|
DianInvoiceXML mapea objeto form.Invoice a XML segun
|
|
lo indicado para la facturacion electronica.
|
|
"""
|
|
|
|
def __init__(self, invoice):
|
|
super().__init__('CreditNote', 'http://www.dian.gov.co/contratos/facturaelectronica/v1')
|
|
|
|
def tag_document(fexml):
|
|
return 'CreditNote'
|
|
|
|
def tag_document_concilied(fexml):
|
|
return 'Credited'
|
|
|
|
def document_type_code(fexml):
|
|
return codelist.TipoDocumento.by_name('Nota Crédito')['code']
|