Implemented saving invoices