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: @@ -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: @@ -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): @@ -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
]

Loading…
Cancel
Save