class Elmas::GoodsDelivery
Public Instance Methods
base_path()
click to toggle source
# File lib/elmas/resources/goods_delivery.rb, line 16 def base_path "salesorder/GoodsDeliveries" 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.rb, line 9 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.rb, line 20 def mandatory_attributes [:goods_delivery_lines] end
other_attributes()
click to toggle source
# File lib/elmas/resources/goods_delivery.rb, line 24 def other_attributes SHARED_SALES_ATTRIBUTES.inject( [ :delivery_account, :delivery_account_code, :delivery_account_name, :delivery_address, :delivery_contact, :delivery_contact_person_full_name, :delivery_date, :delivery_number, :shipping_method, :shipping_method_code, :shipping_method_description, :tracking_number, :warehouse, :warehouse_code, :warehouse_description ], :<< ) end