- Líneas >79 cols reajustadas en todo el paquete - Fix F821: etree.cleanup_namespaces(security) en signature.py (era 'header', NameError) - Fix bug cune_xpath -> xpath en nomina/informacion_general() (NameError) - Elimina clase TaxScheme duplicada en form/__init__.py - Imports explícitos (F403/F405) y __all__ en form_xml/invoice.py, nomina - Elimina imports y variables muertas (F401/F841), E712 (== None -> is None)
15 lines
343 B
Python
15 lines
343 B
Python
from dataclasses import dataclass
|
|
|
|
from facho.fe.data.dian import codelist
|
|
|
|
|
|
@dataclass
|
|
class MetodoPago:
|
|
code: str
|
|
name: str = ''
|
|
|
|
def __post_init__(self):
|
|
if self.code not in codelist.MediosPago:
|
|
raise ValueError("code [%s] not found" % (self.code))
|
|
self.name = codelist.MediosPago[self.code]['name']
|