div.pd100 .invoice-form-wrapper - invoice = @invoice .container-fluid.margintop20 .row .col-sm-10.col-sm-offset-1 h4.marginbot10 Associate GL Accounts .clearfix .row .col-sm-4 div strong Invoice .mt10.ml10 title='Alternate Invoice#: #{@invoice.custom_invoice_number}' = @invoice.invoice_number .col-sm-4 div strong Date Received .mt10.ml10 = @invoice.draft_sent_at&.in_time_zone&.frmt_mm_dd_YY .col-sm-4 div strong Company Name .mt10.ml10 = @invoice.vendor&.name .row.mt10 .col-sm-4 div strong Department .mt10.ml10 - if @invoice.client_department = @invoice.client_department&.name - else |NA .container-fluid.mt20 .row .col-sm-10.col-sm-offset-1 .clearfix .panel.panel-default table.table.inspection-tabel.invoice-items-table cellpadding="0" cellspacing="0" colgroup col width='10%' max-width='80px' col width='10%' max-width='80px' col width='20%' max-width='100px' col width='10%' max-width='50px' col width='10%' max-width='50px' col width='10%' max-width='50px' col width='10%' max-width='50px' col width='20%' max-width='100px' tr.border-top0 th Item Type th Item Name th Description th Price th Qty th Tax th Line Total th Expense Account - @invoice.invoice_items.each do |line_item| tr td = line_item.client_item_type.name td = line_item.client_item.name td = line_item.description td = line_item.total_price.round(2) td = line_item.quantity td = line_item.tax td = line_item.sub_total td - if line_item.client_item&.expense_account = line_item.client_item&.expense_account&.name - else = link_to edit_company_item_type_item_path(line_item.client_item.item_type, line_item.client_item, redirect_to: request.url), data: {toggle: :emodal, title: "Item - #{line_item.client_item.name}", modal_id: 'create-update-item'} do = fa_icon :plus, text: 'Add Account' tr.border-top0 td colspan=6 strong.pull-right |Total: td colspan=2 = invoice.total.format br/ .clearfix footer.navbar-fixed-bottom.footer .text-center.inspectio-buttons = link_to 'Cancel', params[:redirect_to] || company_invoices_path(tab: :inbound), class: 'btn btn-cancel-default pull-left', data: {confirm: 'are you sure you want to close? Your data has not been saved.'} = link_to 'Continue', params[:redirect_to] || company_invoices_path(tab: :inbound), class: "btn btn-continue pull-right #{:disabled unless @invoice.has_items_expense_accounts?}"