fix proposed new invoice number, closes #4219