fix invoice view with percent billed, some refactoring of line item views