<% if @receipt_interospections @receipt_interospections.each do |interospection_item| %> <%= render_xml(interospection_item.purchase_order)%> <%= render_xml(interospection_item.warehouse)%> <%= render_xml(interospection_item.stock_code)%> <%= render_xml(interospection_item.quantity)%> <%= render_xml(interospection_item.counted_quantity_complete, "Y")%> <%= render_xml(interospection_item.delivery_note)%> <%= render_xml(interospection_item.certificate)%> <%= render_xml(interospection_item.narration)%> <%= render_xml(interospection_item.lot)%> <%= render_xml(interospection_item.grn_number) %> <%= render_xml(interospection_item.concession) %> <%= render_xml(interospection_item.cost_basis) %> <%= render_xml(interospection_item.notation) %> <%= render_xml(interospection_item.reference) %> <%= render_xml(interospection_item.grn_source) %> <% @receipt_interospections.bins.each do |bin| %> <%= render_xml(bin.bin_location) %> <%= render_xml(bin.bin_quantity) %> <% end %> <% end end %>