Refactored Invoices Entities, JS view models, controller and service logic.