facho, software provider se adiciona atributo schemeID (FAB22).
FossilOrigin-Name: 5d0831693a86fb50535f1c3fcc512c525b3c257f0b6b78f1cad1c65e5d152b54
This commit is contained in:
		| @@ -123,14 +123,16 @@ class DianXMLExtensionCUFE(FachoXMLExtension): | ||||
| class DianXMLExtensionSoftwareProvider(FachoXMLExtension): | ||||
|     # RESOLUCION 0004: pagina 108 | ||||
|  | ||||
|     def __init__(self, nit: str, id_software: str): | ||||
|     def __init__(self, nit, id_software: str): | ||||
|         self.nit = nit | ||||
|         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}) | ||||
|         software_provider.set_element('/sts:SoftwareProvider/sts:ProviderID', self.nit, | ||||
|                                       **SCHEME_AGENCY_ATTRS) | ||||
|                                       **provider_id_attrs) | ||||
|         software_provider.set_element('/sts:SoftwareProvider/sts:SoftwareID', self.id_software, | ||||
|                                       **SCHEME_AGENCY_ATTRS) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user