portor_doc.xml.erb 1.06 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>
      <Lot><%= render_xml(interospection_item.lot)%></Lot>
    </ReceiptIntoInspection>
  </Item>
      <%
    end
  end
  %>
</PostPurchaseOrderReceipts>