Rename method update_lines to update_line_costs
Smaller input
Also, format the view code to be more readable
Move translation from messages to texts to reflect structure used in other locales
Show total profit for invoices