se actualizan pruebas en base a ultimos cambios.
FossilOrigin-Name: 67daaf819131b0ea6408852d285c1874c818e178ca3f9a352a588c7a5d1a372f
This commit is contained in:
		| @@ -125,14 +125,15 @@ class DianXMLExtensionCUFE(FachoXMLExtension): | ||||
| class DianXMLExtensionSoftwareProvider(FachoXMLExtension): | ||||
|     # RESOLUCION 0004: pagina 108 | ||||
|  | ||||
|     def __init__(self, nit, id_software: str): | ||||
|     def __init__(self, nit, dv, id_software: str): | ||||
|         self.nit = nit | ||||
|         self.dv = dv | ||||
|         self.id_software = id_software | ||||
|  | ||||
|     def build(self, fexml): | ||||
|         software_provider = fexml.fragment('/fe:Invoice/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/sts:DianExtensions/sts:SoftwareProvider') | ||||
|         provider_id_attrs = SCHEME_AGENCY_ATTRS.copy() | ||||
|         provider_id_attrs.update({'schemeID': self.nit.dv}) | ||||
|         provider_id_attrs.update({'schemeID': self.dv}) | ||||
|         software_provider.set_element('/sts:SoftwareProvider/sts:ProviderID', self.nit, | ||||
|                                       **provider_id_attrs) | ||||
|         software_provider.set_element('/sts:SoftwareProvider/sts:SoftwareID', self.id_software, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user