Skip to content

Prevent Duplicate Stock Adjustments - #140

Merged
vanitha1822 merged 1 commit into
release-3.9.0from
nd/vs/item_duplicate
Nov 19, 2026
Merged

vanitha1822 merged 1 commit into
release-3.9.0from
nd/vs/item_duplicate

fix: prevent duplicate stock adjustments

6306dd6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 18, 2026 in 23s

Annotations

Check failure on line 155 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMQ&open=AaHuckWiC9cZUl-G7AMQ&pullRequest=140

Check warning on line 253 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Number number'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMU&open=AaHuckWiC9cZUl-G7AMU&pullRequest=140

Check warning on line 238 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "Collections.sort()" with "List.sort()".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMS&open=AaHuckWiC9cZUl-G7AMS&pullRequest=140

Check warning on line 251 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Boolean boolean'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMT&open=AaHuckWiC9cZUl-G7AMT&pullRequest=140

Check warning on line 230 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "Collections.sort()" with "List.sort()".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMR&open=AaHuckWiC9cZUl-G7AMR&pullRequest=140

Check warning on line 255 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof byte[] byteArray'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMV&open=AaHuckWiC9cZUl-G7AMV&pullRequest=140

Check warning on line 255 in src/main/java/com/iemr/inventory/service/stockadjustment/StockAdjustmentServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof byte[] byteArray'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaHuckWiC9cZUl-G7AMW&open=AaHuckWiC9cZUl-G7AMW&pullRequest=140