Skip to content

Commit

Permalink
updated product
Browse files Browse the repository at this point in the history
  • Loading branch information
Newatia authored and Newatia committed Jan 8, 2024
1 parent 4479f2c commit 1a43b68
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ private void resolveSubstance() {
SubstanceKeyPair subKeyPair = substanceApiService.convertSubstanceKeyBySubstanceKeyResolver(this.substanceKey, this.substanceKeyType);

if (subKeyPair != null) {
// Basis of Strength is same as Subtance Key and Substance Key Type
if ((this.basisOfStrengthSubstanceKey != null) && this.basisOfStrengthSubstanceKey.equalsIgnoreCase(this.substanceKey)) {
if ((this.basisOfStrengthSubstanceKeyType != null) && this.basisOfStrengthSubstanceKeyType.equalsIgnoreCase(this.substanceKeyType)) {
this.basisOfStrengthSubstanceKey = subKeyPair.substanceKey;
this.basisOfStrengthSubstanceKeyType = subKeyPair.substanceKeyType;
}
}

// Substance Key and Substance Key Type
this.substanceKey = subKeyPair.substanceKey;
this.substanceKeyType = subKeyPair.substanceKeyType;
}
Expand Down

0 comments on commit 1a43b68

Please sign in to comment.