Invoicing system in Rails