<%= render_xml(@purchase_order_header.order_action_type) %> <%= render_xml(@purchase_order_header.supplier) %> <%= render_xml(@purchase_order_header.exch_rate_fixed) %> <%= render_xml(@purchase_order_header.exchange_rate) %> <%= render_xml(@purchase_order_header.order_type) %> <%= render_xml(@purchase_order_header.customer) %> <%= render_xml(@purchase_order_header.tax_status) %> <%= render_xml(@purchase_order_header.payment_terms) %> <%= render_xml(@purchase_order_header.invoice_terms) %> <%= render_xml(@purchase_order_header.customer_po_number) %> <%= render_xml(@purchase_order_header.shipping_instrs) %> <%= render_xml(@purchase_order_header.order_date) %> <%= render_xml(@purchase_order_header.due_date) %> <%= render_xml(@purchase_order_header.memo_date) %> <%= render_xml(@purchase_order_header.apply_due_date_to_lines) %> <%= render_xml(@purchase_order_header.memo_code) %> <%= render_xml(@purchase_order_header.buyer) %> <%= render_xml(@purchase_order_header.delivery_name) %> <%= render_xml(@purchase_order_header.delivery_addr1) %> <%= render_xml(@purchase_order_header.delivery_addr2) %> <%= render_xml(@purchase_order_header.delivery_addr3) %> <%= render_xml(@purchase_order_header.delivery_addr4) %> <%= render_xml(@purchase_order_header.delivery_addr5) %> <%= render_xml(@purchase_order_header.postal_code) %> <%= render_xml(@purchase_order_header.warehouse) %> <%= render_xml(@purchase_order_header.discount_less_plus) %> <%= render_xml(@purchase_order_header.disc_percent1) %> <%= render_xml(@purchase_order_header.disc_percent2) %> <%= render_xml(@purchase_order_header.disc_percent3) %> <%= render_xml(@purchase_order_header.purchase_order) %> <%= render_xml(@purchase_order_header.chg_po_stat_to_ready_to_print) %> <% if @order_details && @order_details.has_data %> <% if @order_details.has_stock @order_details.stock_lines.each do |stock_line| %> <%= render_xml(stock_line.purchase_order_line) %> <%= render_xml(stock_line.line_action_type)%> <%= render_xml(stock_line.stock_code)%> <%= render_xml(stock_line.stock_description)%> <%= render_xml(stock_line.warehouse)%> <%= render_xml(stock_line.sup_catalogue)%> <%= render_xml(stock_line.order_qty)%> <%= render_xml(stock_line.order_uom)%> <%= render_xml(stock_line.units)%> <%= render_xml(stock_line.pieces)%> <%= render_xml(stock_line.price_method)%> <%= render_xml(stock_line.supplier_contract)%> <%= render_xml(stock_line.price)%> <%= render_xml(stock_line.price_uom)%> <%= render_xml(stock_line.line_disc_type)%> <%= render_xml(stock_line.line_disc_less_plus)%> <%= render_xml(stock_line.line_disc_percent1)%> <%= render_xml(stock_line.line_disc_percent2)%> <%= render_xml(stock_line.line_disc_percent3)%> <%= render_xml(stock_line.line_disc_value)%> <%= render_xml(stock_line.taxable)%> <%= render_xml(stock_line.tax_codev)%> <%= render_xml(stock_line.job)%> <%= render_xml(stock_line.version)%> <%= render_xml(stock_line.release)%> <%= render_xml(stock_line.latest_due_date)%> <%= render_xml(stock_line.original_due_date)%> <%= render_xml(stock_line.reschedule_due_date)%> <%= render_xml(stock_line.ledger_code)%> <%= render_xml(stock_line.password_for_ledger_code)%> <%= render_xml(stock_line.subcontract_op)%> <%= render_xml(stock_line.inspection_reqd)%> <%= render_xml(stock_line.product_class)%> <%= render_xml(stock_line.nons_unit_mass)%> <%= render_xml(stock_line.nons_unit_vol)%> <% end end if @order_details.has_comment @order_details.comment_lines.each do |comment_line| %> <%= render_xml(comment_line.purchase_order_line)%> <%= render_xml(comment_line.line_action_type)%> <%= render_xml(comment_line.comment)%> <%= render_xml(comment_line.attached_to_stk_line_number)%> <%= render_xml(comment_line.delete_attached_comment_lines)%> <%= render_xml(comment_line.change_single_comment_line)%> <% end end if @order_details.has_misc_charge @order_details.misc_charge_lines.each do |misc_charge_line| %> <%= render_xml(misc_charge_line.purchase_order_line)%> <%= render_xml(misc_charge_line.line_action_type)%> <%= render_xml(misc_charge_line.misc_charge_value)%> <%= render_xml(misc_charge_line.misc_charge_tax)%> <%= render_xml(misc_charge_line.misc_taxable)%> <%= render_xml(misc_charge_line.misc_charge_f_loc)%> <%= render_xml(misc_charge_line.misc_description)%> <%= render_xml(misc_charge_line.misc_comment_code)%> <% end end if @order_details.has_freight @order_details.freight_lines.each do |freight_line| %> <%= render_xml(freight_line.purchase_order_line)%> <%= render_xml(freight_line.line_action_type)%> <%= render_xml(freight_line.freight_value)%> <%= render_xml(freight_line.freight_tax_code)%> <%= render_xml(freight_line.freight_taxable)%> <%= render_xml(freight_line.freight_f_loc)%> <% end end %> <% end %>