Sha256: c3c48b429776e6e38ccc504d440a123678c8b3ff610b247326c49613785cd594

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

%table.pure-table
  %thead
    %tr
      %th Product
      %th qty stocked
      %th Stock date
      %th order date
      %th order number
      %th supplier
  %tbody
    - Supplier.find_each do |supplier|
      - supplier.orders.find_each do |order|
        - if order.order_items.where("num_stocked > 0").present?
          %tr
            %td(colspan=6)
              %center
                %em
                  Order #{order.remote_order_id} from #{order.supplier.name}
          - order.order_items.where("num_stocked > 0").each do |item|
            %tr
              %td= product_link item.local_product
              %td= item.num_stocked
              %td= order.stocked_at
              %td= order.ordered_at
              %td= order.remote_order_id
              %td= order.supplier.name

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/views/supplier/orders/table.haml