database: Add penalty_per_bs to season table
This commit is contained in:
@ -1742,12 +1742,12 @@ def migrate_deliveries(in_dir: str, out_dir: str) -> None:
|
||||
utils.csv_open(f'{out_dir}/modifier.csv') as f_mod:
|
||||
f_season.header('year', 'currency', 'precision', 'max_kg_per_ha', 'vat_normal', 'vat_flatrate',
|
||||
'min_kg_per_bs', 'max_kg_per_bs', 'penalty_per_kg', 'penalty_amount', 'penalty_none',
|
||||
'start_date', 'end_date')
|
||||
'penalty_per_bs_amount', 'penalty_per_bs_none', 'start_date', 'end_date')
|
||||
f_mod.header('year', 'modid', 'ordering', 'name', 'abs', 'rel', 'standard', 'quick_select')
|
||||
for y, s in seasons.items():
|
||||
f_season.row(y, s['currency'], s['precision'], 10_000, 0.10, 0.13,
|
||||
PARAMETERS['LIEFERPFLICHT/GA1'], PARAMETERS['LIEFERRECHT/GA1'],
|
||||
None, None, None, s['start'], s['end'])
|
||||
None, None, None, None, None, s['start'], s['end'])
|
||||
for m in modifiers.values():
|
||||
abs_v = round(m['AZAS'] * pow(10, s['precision'])) if m['AZAS'] is not None else None
|
||||
rel_v = m['AZASProzent'] / 100.0 if m['AZASProzent'] is not None else None
|
||||
|
Reference in New Issue
Block a user