supportDocument add files
FossilOrigin-Name: 13f3285cfe89ea2859463326536c23f60862112d70816d1c792e1e074edf6785
This commit is contained in:
		| @@ -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) | ||||
|             #DIAN 1.7.-2020: FBB04 | ||||
|             line.set_element('./cac:Price/cbc:BaseQuantity', | ||||
|                              invoice_line.price.quantity, | ||||
|                              invoice_line.quantity, | ||||
|                              unitCode=invoice_line.quantity.code) | ||||
|  | ||||
|             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