Add auszahlung.py

This commit is contained in:
2023-07-21 12:33:27 +02:00
parent 85e5576837
commit ae4d8ea5ad
2 changed files with 62 additions and 1 deletions

View File

@ -1450,11 +1450,15 @@ def migrate_payments(in_dir: str, out_dir: str) -> None:
geb = 'Gebunden' if s['gebunden'] else 'NichtGebunden'
azs[snr][sanr][geb] = azs[snr][sanr].get(geb, {})
azs[snr][sanr][geb][s['Oechsle']] = s['Betrag']
curves = []
for sortid, d1 in azs.items():
for attrid, d2 in d1.items():
for geb, d3 in d2.items():
oe = [d3.get(n, 0.0) for n in range(max(d3.keys()) + 1)]
azs[sortid][attrid][geb] = oe
if oe not in curves:
curves.append(oe)
azs[sortid][attrid][geb] = curves.index(oe)
azs['Kurven'] = curves
azq = data['AuszahlungSortenQualitätsstufe']
for q in qual_map.get(p['AZNR'], []):
del q['AZNR']