Skip to content

Commit

Permalink
Fix RegulatedEntity usage which applied wrong country
Browse files Browse the repository at this point in the history
  • Loading branch information
mskopp committed Apr 12, 2023
1 parent 8788938 commit a4ad1ea
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,7 @@ static RegulatedEntity convert(CustomsInfo ci) {
RegulatedEntity regulated = OneRecordTypeConstants.createRegulatedEntity();
regulated.setRegulatedEntityCategory(ci.getCustomsInfoContentCode());
Company company = OneRecordTypeConstants.createCompany();
Address address = prepareCompanyAddress(company);
Country country = OneRecordTypeConstants.createCountry();
country.setCountryCode(ci.getCustomsInformation());
address.setCountry(country);
company.setBranch(OneRecordTypeConstants.createCompanyBranch());
OtherIdentifier oi = OneRecordTypeConstants.createOtherIdentifier();
oi.setOtherIdentifierType(regulated.getRegulatedEntityCategory());
oi.setIdentifier(ci.getCustomsInformation());
Expand Down

0 comments on commit a4ad1ea

Please sign in to comment.