Class: Eddy::TransactionSets::TS850::TS
Overview
Transaction Set Summary:
- Id: 850
- Name: Purchase Order
- Functional Group: PO
Constant Summary
collapse
- ID =
"850".freeze
- NAME =
"Purchase Order".freeze
- FUNCTIONAL_GROUP =
"PO".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: BEG
- Name: Beginning Segment for Purchase Order
- Purpose: To indicate the beginning of the Purchase Order Transaction Set and transmit identifying numbers and dates
38
39
40
41
|
# File 'lib/definitions/transaction_sets/manual/850/850.rb', line 38
def BEG()
yield(@beg) if block_given?
return @beg
end
|
Segment Summary:
- Id: CTT
- Name: Transaction Totals
- Purpose: To transmit a hash total for a specific element in the transaction set
82
83
84
85
|
# File 'lib/definitions/transaction_sets/manual/850/850.rb', line 82
def CTT()
yield(@ctt) if block_given?
return @ctt
end
|
#L_N1 {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
56
57
58
59
60
61
62
63
|
# File 'lib/definitions/transaction_sets/manual/850/850.rb', line 56
def L_N1(&block)
if block_given?
@l_n1.repeat(&block)
else
raise Eddy::Errors::Error, "No block given in loop iteration"
end
return nil
end
|
#L_PO1 {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 100,000
- Components:
69
70
71
72
73
74
75
76
|
# File 'lib/definitions/transaction_sets/manual/850/850.rb', line 69
def L_PO1(&block)
if block_given?
@l_po1.repeat(&block)
else
raise Eddy::Errors::Error, "No block given in loop iteration"
end
return nil
end
|
Segment Summary:
- Id: TD5
- Name: Carrier Details (Routing Sequence/Transit Time)
- Purpose: To specify the carrier and sequence of routing and provide transit time information.
47
48
49
50
|
# File 'lib/definitions/transaction_sets/manual/850/850.rb', line 47
def TD5()
yield(@td5) if block_given?
return @td5
end
|