Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudFofou committed Oct 30, 2024
2 parents fa14c0e + 17e8cd9 commit 4115629
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ private void validateMedicalInventory(MedicalInventory medInventory) throws OHDa
} else {
String chargeReferenceNumber = reference + "-charge";
String dischargeReferenceNumber = reference + "-discharge";
boolean existWithSuffixeCharge = movStockInsertingManager.refNoExists(chargeReferenceNumber);
boolean existWithSuffixeDischarge = movStockInsertingManager.refNoExists(dischargeReferenceNumber);
boolean existWithSuffixCharge = movStockInsertingManager.refNoExists(chargeReferenceNumber);
boolean existWithSuffixDischarge = movStockInsertingManager.refNoExists(dischargeReferenceNumber);
MedicalInventory inventory = this.getInventoryByReference(reference);
if (existWithSuffixeCharge || existWithSuffixeDischarge || (inventory != null && inventory.getId() != medInventory.getId())) {
if (existWithSuffixCharge || existWithSuffixDischarge || (inventory != null && inventory.getId() != medInventory.getId())) {
errors.add(new OHExceptionMessage(MessageBundle.getMessage("angal.inventory.referencealreadyused.msg")));
}
}
Expand Down

0 comments on commit 4115629

Please sign in to comment.