fache/fe/fe.py: correcion schemeName de cufe/cude.
FossilOrigin-Name: cc88c7ea0e16b4663e5b0478bd5be43f2f8012952861f43e61ef8c32a92cf9c8
This commit is contained in:
parent
1429a01f91
commit
4cc29bda4f
@ -90,11 +90,17 @@ class DianXMLExtensionCUDFE(FachoXMLExtension):
|
||||
def _tipo_ambiente(self):
|
||||
return int(self.tipo_ambiente)
|
||||
|
||||
def formatVars(self, invoice):
|
||||
raise NotImplementedError()
|
||||
|
||||
def schemeName(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def build(self, fachoxml):
|
||||
cufe = self._generate_cufe(fachoxml)
|
||||
fachoxml.set_element('./cbc:UUID', cufe,
|
||||
schemeID=self.tipo_ambiente,
|
||||
schemeName='CUFE-SHA384')
|
||||
schemeName=self.schemeName())
|
||||
fachoxml.set_element('./cbc:ProfileID', 'DIAN 2.1')
|
||||
fachoxml.set_element('./cbc:ProfileExecutionID', self._tipo_ambiente())
|
||||
#DIAN 1.7.-2020: FAB36
|
||||
@ -133,10 +139,6 @@ class DianXMLExtensionCUDFE(FachoXMLExtension):
|
||||
|
||||
return build_vars
|
||||
|
||||
|
||||
def formatVars(self, invoice):
|
||||
raise NotImplementedError()
|
||||
|
||||
def _generate_cufe(self, fachoxml):
|
||||
formatVars = self.formatVars()
|
||||
cufe = "".join(formatVars)
|
||||
@ -153,6 +155,9 @@ class DianXMLExtensionCUFE(DianXMLExtensionCUDFE):
|
||||
self.clave_tecnica = clave_tecnica
|
||||
self.invoice = invoice
|
||||
|
||||
def schemeName(self):
|
||||
return 'CUFE-SHA384'
|
||||
|
||||
def buildVars(self):
|
||||
build_vars = super().buildVars()
|
||||
build_vars['ClTec'] = str(self.clave_tecnica)
|
||||
@ -187,6 +192,9 @@ class DianXMLExtensionCUDE(DianXMLExtensionCUDFE):
|
||||
self.software_pin = software_pin
|
||||
self.invoice = invoice
|
||||
|
||||
def schemeName(self):
|
||||
return 'CUDE-SHA384'
|
||||
|
||||
def buildVars(self):
|
||||
build_vars = super().buildVars()
|
||||
build_vars['Software-PIN'] = str(self.software_pin)
|
||||
|
Loading…
Reference in New Issue
Block a user