database: Add active to modifier
This commit is contained in:
@ -1743,7 +1743,7 @@ def migrate_deliveries(in_dir: str, out_dir: str) -> None:
|
||||
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',
|
||||
'penalty_per_bs_amount', 'penalty_per_bs_none', 'start_date', 'end_date')
|
||||
f_mod.header('year', 'modid', 'ordering', 'name', 'abs', 'rel', 'standard', 'quick_select')
|
||||
f_mod.header('year', 'modid', 'ordering', 'name', 'abs', 'rel', 'active')
|
||||
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'],
|
||||
@ -1751,8 +1751,7 @@ def migrate_deliveries(in_dir: str, out_dir: str) -> None:
|
||||
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
|
||||
f_mod.row(y, m['id'], m['ASNR'], m['Bezeichnung'], abs_v, rel_v,
|
||||
m.get('Standard', False), m['Schnellauswahl'])
|
||||
f_mod.row(y, m['id'], m['ASNR'], m['Bezeichnung'], abs_v, rel_v, True)
|
||||
|
||||
|
||||
def migrate_payments(in_dir: str, out_dir: str) -> None:
|
||||
|
Reference in New Issue
Block a user