Fix: Se añade condición para Period in invoice.py
This commit is contained in:
		| @@ -662,11 +662,14 @@ class DIANInvoiceXML(fe.FeXML): | ||||
|                         listURI='http://www.dian.gov.co') | ||||
|         fexml.set_element('./cbc:DocumentCurrencyCode', 'COP') | ||||
|         fexml.set_element('./cbc:LineCountNumeric', len(invoice.invoice_lines)) | ||||
|         fexml.set_element('./cac:%sPeriod/cbc:StartDate' % (fexml.tag_document()), | ||||
|                           invoice.invoice_period_start.strftime('%Y-%m-%d')) | ||||
|         if fexml.tag_document() == 'Invoice': | ||||
|             fexml.set_element('./cac:%sPeriod/cbc:StartDate' % ( | ||||
|                 fexml.tag_document()), | ||||
|                               invoice.invoice_period_start.strftime('%Y-%m-%d')) | ||||
|  | ||||
|         fexml.set_element('./cac:%sPeriod/cbc:EndDate' % (fexml.tag_document()), | ||||
|                           invoice.invoice_period_end.strftime('%Y-%m-%d')) | ||||
|             fexml.set_element('./cac:%sPeriod/cbc:EndDate' % ( | ||||
|                 fexml.tag_document()), | ||||
|                               invoice.invoice_period_end.strftime('%Y-%m-%d')) | ||||
|         fexml.set_billing_reference(invoice) | ||||
|         fexml.customize(invoice) | ||||
|         fexml.set_supplier(invoice) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user