Method: Baldr::Envelope#prepare!
- Defined in:
- lib/baldr/envelope.rb
#prepare! ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/baldr/envelope.rb', line 45 def prepare! trailer = get_trailer('IEA') trailer['IEA01'] = func_group_loop.segments.count.to_s self.interchange_control_number ||= generate_control_number(9) trailer['IEA02'] = interchange_control_number end |