Skip to content

Conversation

@VRohach
Copy link
Contributor

@VRohach VRohach commented Jan 7, 2025

Purpose

The main goal is to fix mechanism for matching vendor code with brackets.

Approach

Additional condition added.

Learning

JIRA: https://folio-org.atlassian.net/browse/MODDICORE-432

return true;
} else if (ruleName.equalsIgnoreCase(VENDOR_ID) && retrieveNameWithoutBrackets(mappingParameter).equalsIgnoreCase(retrieveNameWithoutBrackets(value))) {
} else if (ruleName.equalsIgnoreCase(VENDOR_ID) &&
(retrieveCodeWithoutBrackets(mappingParameter).equalsIgnoreCase(retrieveNameWithoutBrackets(value)) ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @VRohach! could you tell me please, shouldn't we compare code with code here? instead of code with name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @JavokhirAbdullayev! There will be comparing code for vendor from organizations and value from mapping profile. I don't know how to rename "retrieveNameWithoutBrackets"-method because it was already using for retrieving name for vendor from organizations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JavokhirAbdullayev Btw I renamed it to "retrieveNameOrValueWithoutBrackets".

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2025

@VRohach VRohach merged commit 60d4921 into master Jan 8, 2025
7 of 8 checks passed
VRohach added a commit that referenced this pull request Jan 10, 2025
…ets during order creation (#382)

* MODDICORE-432: Fix+test+news.

* MODDICORE-432:Method renamed.

(cherry picked from commit 60d4921)
@KaterynaSenchenko KaterynaSenchenko deleted the MODDICORE-432 branch March 12, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants