"""TIA-Zeile: Felder + getTIA Berechnung. Alles andere erbt Row.""" from __future__ import annotations from dataclasses import dataclass from ...row.row import Row @dataclass class TiaRow(Row): inputColumns = ("AssetNr", "AssetName", "POC", "GRDK", "HSTK", "BNEK", "FINK", "VMAK") computedColumns = ("TIA",) AssetNr: str = None AssetName: str = None POC: float = None GRDK: float = None HSTK: float = None BNEK: float = None FINK: float = None VMAK: float = None TIA: float = None def getTIA(self) -> float: return self.GRDK + self.HSTK + self.BNEK + self.FINK + self.VMAK