portor_doc.xml.erb 1.83 KB
<?xml version="1.0" encoding="Windows-1252"?>
<PostPurchaseOrderReceipts xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="portordoc.xsd">
  <%
  if @receipt_interospections
    @receipt_interospections.each do |interospection_item|
      %>
  <Item>
    <ReceiptIntoInspection>
      <PurchaseOrder><%= render_xml(interospection_item.purchase_order)%></PurchaseOrder>
      <Warehouse><%= render_xml(interospection_item.warehouse)%></Warehouse>
      <StockCode><%= render_xml(interospection_item.stock_code)%></StockCode>
      <Quantity><%= render_xml(interospection_item.quantity)%></Quantity>
      <CountedQuantityComplete><%= render_xml(interospection_item.counted_quantity_complete, "Y")%></CountedQuantityComplete>
      <DeliveryNote><%= render_xml(interospection_item.delivery_note)%></DeliveryNote>
      <Certificate><%= render_xml(interospection_item.certificate)%></Certificate>
      <Narration><%= render_xml(interospection_item.narration)%></Narration>
      <Lot><%= render_xml(interospection_item.lot)%></Lot>
      <GRNNumber><%= render_xml(interospection_item.grn_number) %></GRNNumber>
      <Concession><%= render_xml(interospection_item.concession) %></Concession>
      <CostBasis><%= render_xml(interospection_item.cost_basis) %></CostBasis>
      <Notation><%= render_xml(interospection_item.notation) %></Notation>
      <Reference><%= render_xml(interospection_item.reference) %></Reference>
      <GRNSource><%= render_xml(interospection_item.grn_source) %></GRNSource>
      <% @receipt_interospections.bins.each do |bin| %>
      <Bins>
        <BinLocation><%= render_xml(bin.bin_location) %></BinLocation>
        <BinQuantity><%= render_xml(bin.bin_quantity) %></BinQuantity>
      </Bins>
      <% end %>
    </ReceiptIntoInspection>
  </Item>
      <%
    end
  end
  %>
</PostPurchaseOrderReceipts>