<%= "report is nil" if @report.nil? %>
<% unless @report.nil? %> <% @report.sections.each do |section| %>

<% unless section.delivery_destination.nil? %>
<%= section.delivery_destination.name %>
<%= section.delivery_destination.address %>
<%= section.delivery_destination.place %> <%= Place.name_from_code(section.delivery_destination.place) %>
<%= section.delivery_destination.email %>
<%= section.delivery_destinati on.phone %>
<% end %>

<% section.items.each do |item| %> <% end %>
Code Item name Amount Price Total
<%= item.code %> <%= item.name %> <%= item.amount %> <%= item.list_price %> <%= item.sum_price %>
Total for cart: <%= section.sum_amount %>

Update Order
<% end %> Total: <%= @report.full_sum %> <% end %>