Sha256: 180795de44c3796361a0e04e198db01e3326c7e598eddd70375ae91d0a529ee9

Contents?: true

Size: 1.33 KB

Versions: 10

Compression:

Stored size: 1.33 KB

Contents

%h2.effective-qb-sync-page-title= @page_title

%table.table
  %tbody
    - @qb_ticket.attributes.except('hpc_response', 'qb_request_id', 'id').each do |key, value|
      %tr
        %th= key.titleize
        %td= value

%h3 Orders

= simple_form_for @qb_order_items_form, (EffectiveOrders.admin_simple_form_options || {}).merge(url: effective_qb_sync.admin_qb_sync_path(@qb_order_items_form)) do |f|
  %table.table
    %thead
      %tr
        %th Order
        %th Order Item
        %th Quickbooks Item Name
    %tbody
      - @qb_ticket.orders.each do |order|
        - order.order_items.each_with_index do |order_item, index|
          %tr
            %td= (link_to(('#' + order.to_param.to_s), effective_orders.admin_order_path(order)) if index == 0)
            %td= order_item
            %td
              = f.simple_fields_for :qb_order_items, order_item.qb_order_item do |foi|
                = foi.input :order_item_id, as: :hidden, value: order_item.id
                = foi.input :name, label: false, required: false

  %p= f.button :submit, 'Save Quickbooks Item Names', data: { disable_with: 'Saving...' }



%h3 Sync Log

%table.table
  %thead
    %tr
      %th Time
      %th Message
  %tbody
    - @qb_ticket.qb_logs.each do |qb_log|
      %tr
        %th= qb_log.created_at.strftime("%H:%M:%S").html_safe
        %td= qb_log.message







Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
effective_qb_sync-1.1.4 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.1.3 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.1.2 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.1.1 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.1.0 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.0.4 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.0.3 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.0.2 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.0.1 app/views/admin/qb_syncs/show.html.haml
effective_qb_sync-1.0.0 app/views/admin/qb_syncs/show.html.haml