BUGFIX invoicing was not saving invoices