Properly flag vouchercodes as unused on canceled bulk invoices
authorMagnus Hagander <magnus@hagander.net>
Mon, 19 Feb 2018 16:15:42 +0000 (17:15 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 19 Feb 2018 16:15:42 +0000 (17:15 +0100)
commit747300917b2bc105d1fb02f2c6203a3c13461860
tree19c76f0b7922de6dfb14053f7709058a69052e54
parent3f1725ee4c7effdb3a027fda453f53f1055cfe84
Properly flag vouchercodes as unused on canceled bulk invoices

This was very uncommon before, but now that we use bulk invoices for
multi-reg processing it becomes more common, and this case shows up more
often. We need to mark the vouchercodes as unused in the system,
otherwise we will fail to generate a new invoice for the same
registration once one has been canceled.
postgresqleu/confreg/invoicehandler.py