From dc0c93d5a1028a003148002733f50af54d01317a Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 29 Jul 2025 09:26:01 +0200 Subject: [PATCH] now 'Umbuchungen' are also recognized as payments --- work_helpers/travels.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/work_helpers/travels.py b/work_helpers/travels.py index 85ea544..187afed 100644 --- a/work_helpers/travels.py +++ b/work_helpers/travels.py @@ -27,7 +27,7 @@ class PrePaymentEntry: superx_id: str @classmethod - def from_series(cls, series: pd.Series) -> "PrePamentEntry": + def from_series(cls, series: pd.Series) -> "PrePaymentEntry": return cls( date=series["BuDat"], amount=series["Betrag"], @@ -188,7 +188,7 @@ def _read_pre_payments(file_path: Pathlike = None) -> PrePayments: except ValueError as e: sys.exit(str(e)) - mask = raw_data["Werttyp"].isin(("Zahlung", "Rechnung")) + mask = raw_data["Werttyp"].isin(("Rechnung", "Umbuchung", "Zahlung")) raw_payments = raw_data[mask].copy() summary = ( @@ -307,7 +307,7 @@ def final_payment(search_last_name: str, iso_date: str, place: str): content = "\t".join( [ huel_date, - info.first_last, + info.last_first, f"Schlusszahlung Dienstreise {info.place}, {info.ger_date}", nice_travel_nr ]