3 <%= render :partial => "submenu" %>
5 <div id="main"><!-- メイン -->
8 <% form_tag({:action => 'statement_download',:id => @order_delivery.id })do %>
9 <div class="btn_box space20_bottom" >
10 <%= submit_tag 'PDF DOWNLOAD', :class=>"btn" %>
11 <%= image_tag("btn_side.gif", :width => "6", :height => "34", :class => "btn_side") %>
15 <table cellspacing="1" class="data">
17 <th>発行日</th><td><%=h Time.now.strftime('%Y/%m/%d')%></td>
20 <th>受注日</th><td><%=h date(@order_delivery.received_at) %></td>
25 <%=h @order_delivery.family_name %>
26 <%=h @order_delivery.first_name %> 様
30 <th>受注コード</th><td><%=h @order_delivery.order_code %></td></tr>
34 〒<%=h @order_delivery.zipcode01 %>-
35 <%=h @order_delivery.zipcode02 %><br />
36 <%=h @order_delivery.prefecture_name %>
37 <%=h @order_delivery.address_city %>
38 <%=h @order_delivery.address_detail %>
42 <th colspan="2">会社情報</th></tr>
45 <td><%=h @shop.try(:corp_name) %></td>
50 〒<%=h @shop.try(:zipcode) %><br />
51 <%=h @shop.try(:address) %>
56 <td><%=h @shop.try(:tel) %></td>
60 <h3>毎度お買い上げいただき誠にありがとうございます。下記の通りに納品いたします。</h3> <br />
62 <table cellspacing="1" class="data2">
64 <th colspan="6">受付商品情報</th>
67 <th class="center">商品コード</th>
68 <th class="center">商品名/<br />規格1/<br />規格2</th>
69 <th class="center">単価</th>
70 <th class="center">数量</th>
71 <th class="center">税込み価格</th>
72 <th class="center">小計</th>
75 <% @order_delivery.order_details.each do | detail | %>
77 <td><%=h detail.product_code %></td>
79 <%=h detail.product_name %>/<br />
80 <%=h detail.style_category_name1 %>/<br />
81 <%=h detail.style_category_name2 %>
83 <td><%=h number_with_delimiter(detail.price) %>円</td>
84 <td><%=h number_with_delimiter(detail.quantity) %></td>
85 <td><%= number_with_delimiter(detail.price_with_tax) %>円</td>
86 <td><%= number_with_delimiter(detail.subtotal) %>円</td>
91 <th colspan="5">小計</th>
92 <td><%=h number_with_delimiter(@order_delivery.subtotal) %>円</td>
95 <% unless @order_delivery.discount.blank? %>
97 <th colspan="5">値引</th>
98 <td><%=h number_with_delimiter(@order_delivery.discount) || 0 %>円</td>
103 <th colspan="5">送料</th>
104 <td><%=h number_with_delimiter(@order_delivery.deliv_fee) %>円</td>
107 <th colspan="5">手数料</th>
108 <td><%=h number_with_delimiter(@order_delivery.charge) %>円</td>
111 <th colspan="5">合計</th>
112 <td><%=h number_with_delimiter(@order_delivery.total) %>円</td>
115 <% unless @order_delivery.use_point.blank? %>
117 <th colspan="5">使用ポイント</th>
118 <td><%=h number_with_delimiter(@order_delivery.use_point) %>ポイント</td>
122 <% unless @order_delivery.add_point.blank? %>
124 <th colspan="5">追加ポイント</th>
125 <td><%=h number_with_delimiter(@order_delivery.add_point) %>ポイント</td>
130 <th colspan="5">お支払い合計</th>
131 <td><%=h number_with_delimiter(@order_delivery.payment_total) %>円</td>