diff --git a/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java b/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java index e2bfc3b84f..a90a7d18a8 100644 --- a/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java +++ b/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java @@ -530,7 +530,7 @@ private JButton getSelectedButton() { radioGroup.add(getMedicalWithMovementRadioButton()); // Map actions to buttons - initialiseActions(); + initializeActions(); // Convertir la HashMap en TreeMap pour trier les clés Map sortedActionMap = new TreeMap<>(Comparator.comparing(AbstractButton::getText)); sortedActionMap.putAll(actions); @@ -2062,6 +2062,7 @@ private boolean existInInventorySearchList(MedicalInventoryRow inventoryRow) { return found; } + private void addMedInRowInInventorySearchList(MedicalInventoryRow inventoryRow) { int position = getPosition(inventoryRow); if (position == -1) { @@ -2074,6 +2075,7 @@ private void addMedInRowInInventorySearchList(MedicalInventoryRow inventoryRow) inventoryRowListAdded.add(inventoryRow); } } + private void resetVariable() { inventoryRowsToDelete.clear(); lotsDeleted.clear();