Change method company.less_invoice_tax to map invoices payments summed amounts and divide them by the invoice sales tax, then sum the array of totals.
Add user_attributes to account_params.