class Elmas::GoodsDeliveryLine
Public Instance Methods
base_path()
click to toggle source
# File lib/elmas/resources/goods_delivery_line.rb, line 17 def base_path "salesorder/GoodsDeliveryLines" end
find_all(options = {})
click to toggle source
For some reason the Exact API
for GoodsDelivery
requires us to specify the fields we want returned. This isn't required for other calls. :/ We get around this by specifying a wildcard on the $select param.
# File lib/elmas/resources/goods_delivery_line.rb, line 10 def find_all(options = {}) @order_by = options[:order_by] @select = options[:select] ||= ['*'] response = get(uri([:order, :select])) response.results if response end
mandatory_attributes()
click to toggle source
# File lib/elmas/resources/goods_delivery_line.rb, line 21 def mandatory_attributes [:delivery_date, :item, :line_number, :sales_order_number] end
other_attributes()
click to toggle source
# File lib/elmas/resources/goods_delivery_line.rb, line 25 def other_attributes SHARED_LINE_ATTRIBUTES.inject( [ :quantity_delivered, :quantity_ordered, :sales_order_line_id, :sales_order_line_number, :serial_numbers, :storage_location, :tracking_number, :unit_code ], :<< ) end