- 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)
20 lines
542 B
Python
20 lines
542 B
Python
from dataclasses import dataclass
|
|
|
|
from ..amount import Amount
|
|
from .deduccion import Deduccion
|
|
|
|
|
|
@dataclass
|
|
class DeduccionSalud(Deduccion):
|
|
porcentaje: Amount
|
|
deduccion: Amount
|
|
|
|
def apply(self, fragment):
|
|
fragment.set_element('./Salud', None,
|
|
append_=True,
|
|
# NIE161
|
|
Porcentaje=str(round(self.porcentaje, 2)),
|
|
# NIE163
|
|
Deduccion=self.deduccion
|
|
)
|