diff --git a/lib/syspro/business_objects/models/receipt_interospection.rb b/lib/syspro/business_objects/models/receipt_interospection.rb index ad9484c..bce19b7 100644 --- a/lib/syspro/business_objects/models/receipt_interospection.rb +++ b/lib/syspro/business_objects/models/receipt_interospection.rb @@ -9,7 +9,23 @@ module Syspro :counted_quantity_complete, :delivery_note, :certificate, - :lot + :narration, + :lot, + :grn_number, + :concession, + :cost_basis, + :notation, + :reference, + :grn_source, + :bins + def initialize + @bins = [] + end + end + + class InterospectionBin + attr_accessor :bin_location, + :bin_quantity end end end diff --git a/lib/syspro/business_objects/schemas/portor_doc.xml.erb b/lib/syspro/business_objects/schemas/portor_doc.xml.erb index 67554d4..9def104 100644 --- a/lib/syspro/business_objects/schemas/portor_doc.xml.erb +++ b/lib/syspro/business_objects/schemas/portor_doc.xml.erb @@ -1,7 +1,7 @@ <% - if receipt_interospections + if @receipt_interospections @receipt_interospections.each do |interospection_item| %> @@ -13,7 +13,20 @@ <%= 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 %> <% -- libgit2 0.21.4