Browse Source

set managing org to be same as owning org in BU

pull/2077/head
Kat 3 years ago
parent
commit
014a103377
  1. 1
      app/services/bulk_upload/sales/year2023/row_parser.rb
  2. 8
      spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

1
app/services/bulk_upload/sales/year2023/row_parser.rb

@ -896,6 +896,7 @@ private
attributes["othtype"] = field_11
attributes["owning_organisation"] = owning_organisation
attributes["managing_organisation"] = owning_organisation
attributes["created_by"] = created_by || bulk_upload.user
attributes["hhregres"] = field_73
attributes["hhregresstill"] = field_74

8
spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

@ -1162,6 +1162,14 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
end
end
end
describe "#managing_organisation_id" do
let(:attributes) { setup_section_params }
it "is correctly set" do
expect(parser.log.managing_organisation_id).to be(owning_org.id)
end
end
end
describe "#spreadsheet_duplicate_hash" do

Loading…
Cancel
Save