Skip to content

Commit

Permalink
Fixed error in logging #3357
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Nov 12, 2024
1 parent d6a87ac commit 1db7439
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/groovy/au/org/ala/merit/GmsMapper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,13 @@ class GmsMapper {
error = "An existing organisation name was matched via the entity/business name ${organisation.name} but the ABN doesn't match the abn of the MERIT organisation (${organisation.abn})"
} else {
createOrganisation = true

String name
if (contractName) {
name = contractName
organisation = abnLookup + [name:contractName, contractNames: [contractName]]
}
else {
String name = abnLookup.businessNames ? abnLookup.businessNames[0] : abnLookup.entityName
name = abnLookup.businessNames ? abnLookup.businessNames[0] : abnLookup.entityName
organisation = abnLookup + [name: name]
}
messages << "An organisation will be created with ABN: ${abn} and name: ${name}"
Expand Down

0 comments on commit 1db7439

Please sign in to comment.