14 lines
341 B
Python
14 lines
341 B
Python
from dataclasses import dataclass
|
|
|
|
from facho.fe.data.dian import codelist
|
|
|
|
@dataclass
|
|
class FormaPago:
|
|
code: str
|
|
name: str = ''
|
|
|
|
def __post_init__(self):
|
|
if self.code not in codelist.FormasPago:
|
|
raise ValueError("code [%s] not found" % (self.code))
|
|
self.name = codelist.FormasPago[self.code]['name']
|