Skip to content

Commit

Permalink
Client links。
Browse files Browse the repository at this point in the history
  • Loading branch information
keikun17 committed May 3, 2016
1 parent d5a2cf8 commit 4113c5d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/read_only/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
- @orders.all.each do |order|
- offer_count = order.offers.count
- offer = order.offers.first
- clients = order.clients.decorate
- offer = offer.decorate

%tr
%td{rowspan: offer_count}= order.created_at.to_date.to_s(:short)
%td{rowspan: offer_count}= clients.map(&:display_name).join(',')
%td{rowspan: offer_count}
= order.clients.each do
= link_to order.reference, order
%br
%td{rowspan: offer_count}= link_to order.reference, order
%td
%p
Expand All @@ -45,7 +47,7 @@
- if offer.from_stock?
%b GET FROM STOCK
%td
= offer.supplier.name
= link_to offer.supplier.name, offer.supplier
%td
%td= offer.delivery_receipt_reference
%td= offer.sales_invoice_reference
Expand Down Expand Up @@ -75,7 +77,7 @@
- if offer.from_stock?
%b GET FROM STOCK
%td
= offer.supplier.name
= link_to offer.supplier.name, offer.supplier
%td
%td= offer.delivery_receipt_reference
%td= offer.sales_invoice_reference

0 comments on commit 4113c5d

Please sign in to comment.