Skip to content

Commit

Permalink
update src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java'
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudFofou committed Dec 9, 2024
1 parent 06c5a6a commit 756d6b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<AbstractButton, Runnable> sortedActionMap = new TreeMap<>(Comparator.comparing(AbstractButton::getText));
sortedActionMap.putAll(actions);
Expand Down Expand Up @@ -2062,6 +2062,7 @@ private boolean existInInventorySearchList(MedicalInventoryRow inventoryRow) {

return found;
}

private void addMedInRowInInventorySearchList(MedicalInventoryRow inventoryRow) {
int position = getPosition(inventoryRow);
if (position == -1) {
Expand All @@ -2074,6 +2075,7 @@ private void addMedInRowInInventorySearchList(MedicalInventoryRow inventoryRow)
inventoryRowListAdded.add(inventoryRow);
}
}

private void resetVariable() {
inventoryRowsToDelete.clear();
lotsDeleted.clear();
Expand Down

0 comments on commit 756d6b0

Please sign in to comment.