From fe845ec38e13653fd80c256dee41bf19c5962078 Mon Sep 17 00:00:00 2001 From: Alessandro Domanico Date: Tue, 29 Oct 2024 17:24:13 +0100 Subject: [PATCH] Update src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java --- .../java/org/isf/medicalstock/gui/MovStockMultipleCharging.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java b/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java index 8b3b787c38..8e458a6c4e 100644 --- a/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java +++ b/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java @@ -477,7 +477,7 @@ private boolean setOrValidateCost(Lot lot, int qty) { if (GeneralData.LOTWITHCOST && (cost.equals(BigDecimal.ZERO) || lot.getCost() == null)) { cost = askCost(qty); if (cost.compareTo(BigDecimal.ZERO) == 0) { - return false; // Invalid cost, exit the method + return false; } lot.setCost(cost); }