supportDocument add files
FossilOrigin-Name: 13f3285cfe89ea2859463326536c23f60862112d70816d1c792e1e074edf6785
This commit is contained in:
		
							
								
								
									
										47
									
								
								facho/fe/data/dian/codelist/TipoOperacionNCDS-2.1.gc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								facho/fe/data/dian/codelist/TipoOperacionNCDS-2.1.gc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,47 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <gc:CodeList xmlns:gc="http://docs.oasis-open.org/codelist/ns/genericode/1.0/"> | ||||||
|  |    <Identification> | ||||||
|  |       <ShortName>TipoOperacion</ShortName> | ||||||
|  |       <LongName xml:lang="es">Tipo de operacion</LongName> | ||||||
|  |       <Version>1</Version> | ||||||
|  |       <CanonicalUri>urn:dian:names:especificacion:ubl:listacodigos:gc:TipoOperacion</CanonicalUri> | ||||||
|  |       <CanonicalVersionUri>urn:dian:names:especificacion:ubl:listacodigos:gc:TipoOperacion-2.1</CanonicalVersionUri> | ||||||
|  |       <LocationUri>http://dian.gov.co/ubl/os-ubl-2.0/cl/gc/default/TipoOperacion-2.1.gc</LocationUri> | ||||||
|  |       <Agency> | ||||||
|  |          <LongName xml:lang="es">DIAN (Dirección de Impuestos y Aduanas Nacionales)</LongName> | ||||||
|  |          <Identifier>195</Identifier> | ||||||
|  |       </Agency> | ||||||
|  |    </Identification> | ||||||
|  |    <ColumnSet> | ||||||
|  |       <Column Id="code" Use="required"> | ||||||
|  |          <ShortName>Code</ShortName> | ||||||
|  |          <Data Type="normalizedString"/> | ||||||
|  |       </Column> | ||||||
|  |       <Column Id="name" Use="required"> | ||||||
|  |          <ShortName>Nombre</ShortName> | ||||||
|  |          <Data Type="normalizedString"/> | ||||||
|  |       </Column> | ||||||
|  |       <Key Id="codeKey"> | ||||||
|  |          <ShortName>CodeKey</ShortName> | ||||||
|  |          <ColumnRef Ref="code"/> | ||||||
|  |       </Key> | ||||||
|  |    </ColumnSet> | ||||||
|  |    <SimpleCodeList> | ||||||
|  |       <Row> | ||||||
|  |          <Value ColumnRef="code"> | ||||||
|  |             <SimpleValue>10</SimpleValue> | ||||||
|  |          </Value> | ||||||
|  |          <Value ColumnRef="name"> | ||||||
|  |             <SimpleValue>Residente</SimpleValue> | ||||||
|  |          </Value> | ||||||
|  |       </Row> | ||||||
|  |       <Row> | ||||||
|  |          <Value ColumnRef="code"> | ||||||
|  |             <SimpleValue>11</SimpleValue> | ||||||
|  |          </Value> | ||||||
|  |          <Value ColumnRef="name"> | ||||||
|  |             <SimpleValue>No Residente</SimpleValue> | ||||||
|  |          </Value> | ||||||
|  |       </Row> | ||||||
|  |    </SimpleCodeList> | ||||||
|  | </gc:CodeList> | ||||||
| @@ -432,7 +432,7 @@ class DIANSupportDocumentXML(fe.FeXML): | |||||||
|             line.set_element('./cac:Price/cbc:PriceAmount', invoice_line.price.amount, currencyID=invoice_line.price.amount.currency.code) |             line.set_element('./cac:Price/cbc:PriceAmount', invoice_line.price.amount, currencyID=invoice_line.price.amount.currency.code) | ||||||
|             #DIAN 1.7.-2020: FBB04 |             #DIAN 1.7.-2020: FBB04 | ||||||
|             line.set_element('./cac:Price/cbc:BaseQuantity', |             line.set_element('./cac:Price/cbc:BaseQuantity', | ||||||
|                              invoice_line.price.quantity, |                              invoice_line.quantity, | ||||||
|                              unitCode=invoice_line.quantity.code) |                              unitCode=invoice_line.quantity.code) | ||||||
|  |  | ||||||
|             for idx, charge in enumerate(invoice_line.allowance_charge): |             for idx, charge in enumerate(invoice_line.allowance_charge): | ||||||
|   | |||||||
							
								
								
									
										21
									
								
								facho/fe/form_xml/support_document_credit_note.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								facho/fe/form_xml/support_document_credit_note.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | |||||||
|  | from .. import fe | ||||||
|  | from ..form import * | ||||||
|  | from .support_document import DIANSupportDocumentXML | ||||||
|  |  | ||||||
|  | __all__ = ['DIANSupportDocumentCreditNoteXML'] | ||||||
|  |  | ||||||
|  | class DIANSupportDocumentCreditNoteXML(DIANSupportDocumentXML): | ||||||
|  |     """ | ||||||
|  |     DianInvoiceXML mapea objeto form.Invoice a XML segun | ||||||
|  |     lo indicado para la facturacion electronica. | ||||||
|  |     """ | ||||||
|  |  | ||||||
|  |     def __init__(self, invoice): | ||||||
|  |         super(DIANSupportDocumentCreditNoteXML, self).__init__(invoice, 'CreditNote')         | ||||||
|  |  | ||||||
|  |     def tag_document(fexml): | ||||||
|  |         return 'CreditNote' | ||||||
|  |  | ||||||
|  |     def tag_document_concilied(fexml): | ||||||
|  |         return 'Credited' | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user
	 sinergia
					sinergia