[FIX] generate_bank_file. Banelco file seq. ondelete cascade history_id

Merged Sebastian Kennedy requested to merge 8.0-tea-bank-features into 8.0-tea-reimputation

Add changes from 8.0-tea-bank-features to 8.0-tea-reimputation WIP branch

Merge request reports