Migrate cmutuel parsing code to new upstream framework
authorMagnus Hagander <magnus@hagander.net>
Sat, 22 Feb 2020 11:34:31 +0000 (12:34 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 22 Feb 2020 11:34:31 +0000 (12:34 +0100)
commita428c53c3b93963a08b7aec9f7441c204914932b
treed788cf0de311b5388edd4cf266515e7dc21e0d4d
parent08a13ff59dd26eb53b9a56e8a89d98443a4a82a3
Migrate cmutuel parsing code to new upstream framework

Instead of writing code for each bank output file format this framework
allows it to just be a JSON specification file. Which can then live in
the upstream repo itself since it's even less likely to change.

In doing so, create a migration that changes the existing
InvoicePaymentMethod to use the new framework (while copying the config
of it), and migrate all the existing downloaded transactions into the
new format.

Intentionally leave the old table around in the database for now, in
case something goes wrong and we need forensics :) At a later date we'll
add a migration to drop it.
code/pgeusite/cmutuel/apps.py
code/pgeusite/cmutuel/migrations/0002_migrate_to_upstream.py [new file with mode: 0644]
code/pgeusite/cmutuel/util.py [deleted file]
template/cmutuel/payment.html [deleted file]