On incoming cmutuel payments, always wait one day
authorMagnus Hagander <magnus@hagander.net>
Wed, 31 Jul 2019 07:06:08 +0000 (09:06 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 31 Jul 2019 07:06:08 +0000 (09:06 +0200)
commitf7d763df9198daca8ea070e18c7c4bd4effc178f
treea386d68538204e8ebd45c4d9ccf8ab75e0b59bc2
parent1ea0f9593f3aa99586c32c7b65d9febb2d64c144
On incoming cmutuel payments, always wait one day

It seems that sometimes cmutuel will show a truncated version of the
transaction in the report for a while, and then later replace it with
the complete text (without any indication that this has been done) in
the reports. When using the manual GUI instead of the reports, these
transactions show up with something like "details are missing", but that
information does not exist in the reports.

Some patterns indicate that this happens when a payment arrives towards
the end of the day, which seems to be common with for example
transferwise transfers. For that reason, attempt to work around it by
delaying processing of all incoming payments until the day after they
arrived, at the hope that this makes the full text appear.
code/pgeusite/cmutuel/management/commands/cmscrape.py