Automatic invoice number in invoice group broken in v1.4.7

Reopened the corresponding ticket, will take a look at it.

https://development.invoiceplane.com/browse/IP-255