Class: Eddy::TransactionSets::TS856::TS
Overview
Transaction Set Summary:
- Id: 856
- Name: Ship Notice/Manifest (Advance Ship Notice)
- Functional Group: SH
Constant Summary
collapse
- ID =
"856".freeze
- NAME =
"Ship Notice/Manifest (Advance Ship Notice)".freeze
- FUNCTIONAL_GROUP =
"SH".freeze
Instance Attribute Summary
#components, #control_number, #store
Instance Method Summary
collapse
#add_envelope, #all_components, #functional_group, functional_group, id, #id, #name, name, #number_of_included_segments, #render
Constructor Details
#initialize(store) ⇒ void
Instance Method Details
Segment Summary:
- Id: BSN
- Name: Beginning Segment for Ship Notice
- Purpose: To transmit identifying numbers, dates, and other basic data relating to the transaction set.
36
37
38
39
|
# File 'lib/definitions/transaction_sets/manual/856/856.rb', line 36
def BSN()
yield(@bsn) if block_given?
return @bsn
end
|
Segment Summary:
- Id: CTT
- Name: Transaction Totals
- Purpose: To transmit a hash total for a specific element in the transaction set
67
68
69
70
|
# File 'lib/definitions/transaction_sets/manual/856/856.rb', line 67
def CTT()
yield(@ctt) if block_given?
return @ctt
end
|
Segment Summary:
- Id: DTM
- Name: Date/Time Reference
- Purpose: To specify pertinent dates and times.
45
46
47
48
|
# File 'lib/definitions/transaction_sets/manual/856/856.rb', line 45
def DTM()
yield(@dtm) if block_given?
return @dtm
end
|
#HL_SHIPMENT {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 200000
- Components:
- HL
- TD1
- TD5
- REF
- DTM
- N1 (loop)
- HL_ORDER (loop)
- HL_TARE (loop)
- HL_ITEM (loop)
54
55
56
57
58
59
60
61
|
# File 'lib/definitions/transaction_sets/manual/856/856.rb', line 54
def HL_SHIPMENT(&block)
if block_given?
@hl_shipment.repeat(&block)
else
raise Eddy::Errors::Error, "No block given in loop iteration"
end
return nil
end
|