<%= render :partial => "base/title", :locals => {:title => "購入履歴詳細"} %>
      ■<%= date_time(@order.received_at) %><br />
      注文番号:<br />
	  <%=h @order.code %><br /><br />
      【配送先】<br />
      <%=h @order_delivery.deliv_family_name %> <%=h @order_delivery.deliv_first_name %><br />
      〒<%=h @order_delivery.deliv_zipcode01 %>-<%=h @order_delivery.deliv_zipcode02 %><br />
      <%=h @order_delivery.prefecture.name %><%=h @order_delivery.address_city %><%=h @order_delivery.address_detail %><br />
      <%=h @order_delivery.deliv_tel01 %>-<%=h @order_delivery.deliv_tel02 %>-<%=h @order_delivery.deliv_tel03 %><br />
      <br />
      【お届け時間指定】<br />
      <%=h @order_delivery.delivery_time_name %><br />
      <br />
      【お支払い方法】<br />
      <%=h @order_delivery.payment && @order_delivery.payment.name %><br /><br />
      【ご注文内容】<br />
      <% @order_delivery.order_details.each do | detail | %><br />

     <%= link_to_product detail.product_style.product, detail.product_style_name %><br />
     単価: <%= number_with_delimiter(detail.price) %>円<br />
     個数: <%= number_with_delimiter(detail.quantity) %><br />
     小計: <%= number_with_delimiter(detail.subtotal) %>円<br />
	 <br />
      <% end %>
      <br />
      【購入金額】<br />
      小計:<%= number_with_delimiter(@order_delivery.subtotal) %>円<br />
      送料:<%= number_with_delimiter((@order_delivery.deliv_fee.blank? ? 0 :@order_delivery.deliv_fee)) %>円<br />
      手数料:<%= number_with_delimiter(@order_delivery.charge.blank? ? 0 :@order_delivery.charge) %>円<br />
      合計:<%= number_with_delimiter(@order_delivery.total) %>円<br />
      使用ポイント:-<%= number_with_delimiter(@order_delivery.use_point) %>Pt<br />
      加算されるポイント:+<%= number_with_delimiter(@order_delivery.add_point) %>Pt<br />
      支払金額:<%= number_with_delimiter(@order_delivery.payment_total) %>円<br />
      <br />
      【注文状況】<br />
  ステータス:<%= h @order_delivery.front_status_view %><br />
 発送日:<%= @order_delivery.shipped_at ? date(@order_delivery.shipped_at) : '未発送' %><br />
 発送伝票番号：<% if @order_delivery.delivery_tickets.empty? %>
		  	未発送
    		<% else %>
		     <% @order_delivery.delivery_tickets.each do |ticket| %>
		      <%=h ticket.code %><br/>
		     <% end %>
		    <% end %>