Add date to contract
This commit is contained in:
@ -654,7 +654,7 @@ def migrate_contracts(in_dir: str, out_dir: str) -> None:
|
||||
open(f'{out_dir}/area_commitment.csv', 'w+') as f_fb, \
|
||||
open(f'{out_dir}/area_commitment_parcel.csv', 'w+') as f_parc, \
|
||||
open(f'{out_dir}/area_commitment_attribute.csv', 'w+') as f_attr:
|
||||
f_c.write('vnr;mgnr;year_from;year_to;comment\n')
|
||||
f_c.write('vnr;mgnr;date;year_from;year_to;comment\n')
|
||||
f_fb.write('vnr;sortid;cultid;area\n')
|
||||
f_parc.write('vnr;kgnr;gstnr;rdnr;area\n')
|
||||
f_attr.write('vnr;attrid\n')
|
||||
@ -682,7 +682,7 @@ def migrate_contracts(in_dir: str, out_dir: str) -> None:
|
||||
comment = f'KG {kgnr}: {parz}'
|
||||
|
||||
to = fb['Bis'] if fb['Bis'] and fb['Bis'] < 3000 else None
|
||||
f_c.write(csv.format_row(vnr, mgnr, fb['Von'], to, comment))
|
||||
f_c.write(csv.format_row(vnr, mgnr, None, fb['Von'], to, comment))
|
||||
|
||||
f_fb.write(csv.format_row(vnr, fb['SNR'], CULTIVATION_MAP[fb['BANR']], area))
|
||||
if fb['SANR']:
|
||||
|
Reference in New Issue
Block a user