|
|
@ -51,11 +51,6 @@ class PrePayments: |
|
|
|
def __iter__(self) -> Iterable[PrePaymentEntry]: |
|
|
|
def __iter__(self) -> Iterable[PrePaymentEntry]: |
|
|
|
return iter(self.payments) |
|
|
|
return iter(self.payments) |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
|
|
|
def nice_number(self) -> str: |
|
|
|
|
|
|
|
if len(self.travel_nr) > 6: |
|
|
|
|
|
|
|
return " ".join(self.travel_nr[:5], self.travel_nr[5:]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_form_data(self) -> dict[str, str]: |
|
|
|
def to_form_data(self) -> dict[str, str]: |
|
|
|
form_data = { |
|
|
|
form_data = { |
|
|
|
"Projekt": self.project, |
|
|
|
"Projekt": self.project, |
|
|
@ -296,19 +291,22 @@ def final_payment(search_last_name: str, iso_date: str, place: str): |
|
|
|
folder |
|
|
|
folder |
|
|
|
/ f"HUEL UK-A {info.last_first}, Dienstreise {info.place}, Schlusszahlung.txt" |
|
|
|
/ f"HUEL UK-A {info.last_first}, Dienstreise {info.place}, Schlusszahlung.txt" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
huel_date = "/".join(TODAY.split("-")[::-1]) |
|
|
|
|
|
|
|
nice_travel_nr = " ".join((payments.travel_nr[:5], payments.travel_nr[5:])) |
|
|
|
content = "\t".join( |
|
|
|
content = "\t".join( |
|
|
|
[ |
|
|
|
[ |
|
|
|
info.ger_date.replace(".", "/"), |
|
|
|
huel_date, |
|
|
|
info.first_last, |
|
|
|
info.first_last, |
|
|
|
f"Schlusszahlung Dienstreise {info.place}, {info.ger_date}", |
|
|
|
f"Schlusszahlung Dienstreise {info.place}, {info.ger_date}", |
|
|
|
payments.nice_number |
|
|
|
nice_travel_nr |
|
|
|
] |
|
|
|
] |
|
|
|
) |
|
|
|
) |
|
|
|
_create_text_stub(uka_hint_path, content=content) |
|
|
|
_create_text_stub(uka_hint_path, content=content) |
|
|
|
|
|
|
|
|
|
|
|
sz_path = ( |
|
|
|
sz_path = ( |
|
|
|
folder |
|
|
|
folder |
|
|
|
/ f"DATE {info.travel_short}, Schlusszahlung an Unikasse, KONTO, HUELNR.txt" |
|
|
|
/ f"DATE {info.travel_short}, Schlusszahlung an Unikasse, KONTO HUELNR.txt" |
|
|
|
) |
|
|
|
) |
|
|
|
_create_text_stub(sz_path, content="Schlusszahlung an Unikasse geschickt.") |
|
|
|
_create_text_stub(sz_path, content="Schlusszahlung an Unikasse geschickt.") |
|
|
|
|
|
|
|
|
|
|
|