Class: IngramMicro::SalesOrderHeader
- Inherits:
-
BaseElement
- Object
- BaseElement
- IngramMicro::SalesOrderHeader
- Defined in:
- lib/ingram_micro/elements/sales_order_header.rb
Constant Summary collapse
- DEFAULTS =
{ customer_order_number: 0, customer_order_date: nil, order_sub_total: 0.0, order_discount: 0.0, order_tax1: 0.0, order_tax2: 0.0, order_tax3: 0.0, order_shipment_charge: 0.0, order_total_net: 0.0, order_status: nil, order_type: nil, gift_flag: nil }
Instance Attribute Summary
Attributes inherited from BaseElement
Instance Method Summary collapse
Methods inherited from BaseElement
#build, #initialize, #integer?, #parse
Constructor Details
This class inherits a constructor from IngramMicro::BaseElement
Instance Method Details
#defaults ⇒ Object
18 19 20 |
# File 'lib/ingram_micro/elements/sales_order_header.rb', line 18 def defaults DEFAULTS end |
#use_current_date? ⇒ Boolean
22 23 24 25 26 |
# File 'lib/ingram_micro/elements/sales_order_header.rb', line 22 def use_current_date? if @element[:customer_order_date].nil? @element[:customer_order_date] = DateTime.now.strftime('%Y%m%d') end end |