Browse Source

now 'Umbuchungen' are also recognized as payments

master
Holger Frey 2 weeks ago
parent
commit
dc0c93d5a1
  1. 6
      work_helpers/travels.py

6
work_helpers/travels.py

@ -27,7 +27,7 @@ class PrePaymentEntry:
superx_id: str superx_id: str
@classmethod @classmethod
def from_series(cls, series: pd.Series) -> "PrePamentEntry": def from_series(cls, series: pd.Series) -> "PrePaymentEntry":
return cls( return cls(
date=series["BuDat"], date=series["BuDat"],
amount=series["Betrag"], amount=series["Betrag"],
@ -188,7 +188,7 @@ def _read_pre_payments(file_path: Pathlike = None) -> PrePayments:
except ValueError as e: except ValueError as e:
sys.exit(str(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() raw_payments = raw_data[mask].copy()
summary = ( summary = (
@ -307,7 +307,7 @@ def final_payment(search_last_name: str, iso_date: str, place: str):
content = "\t".join( content = "\t".join(
[ [
huel_date, huel_date,
info.first_last, info.last_first,
f"Schlusszahlung Dienstreise {info.place}, {info.ger_date}", f"Schlusszahlung Dienstreise {info.place}, {info.ger_date}",
nice_travel_nr nice_travel_nr
] ]

Loading…
Cancel
Save