From 756d6b0994a67e884fe0cccb6a51a30c6e800cc2 Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Mon, 9 Dec 2024 07:52:11 +0100 Subject: [PATCH] update src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java' --- src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();