Skip to content

Commit

Permalink
CL-13157 Added receiver's code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhiraj Mishra authored and Cardds committed Nov 5, 2018
1 parent f11cab8 commit daaf0d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/baldr/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def initialize(params = {})
end

@functional_groups_control_numbers = params[:functional_groups_control_numbers] || {}
@receiver_code = params[:receiver_code]
end

def ST(&block)
Expand Down Expand Up @@ -42,7 +43,7 @@ def build_functional_groups
group = Baldr::FunctionalGroup.new
group.functional_identifier_code = group_id
group.application_senders_code = @envelope.sender_id
group.application_receivers_code = @envelope.receiver_id
group.application_receivers_code = @receiver_code.present? ? @receiver_code : @envelope.receiver_id
group.version_release_industry_code = "#{@envelope.standard_version_number}0"
group.date_time = @envelope.date_time
group.group_control_number = @functional_groups_control_numbers[group_id]
Expand Down

0 comments on commit daaf0d3

Please sign in to comment.