diff --git a/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java b/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java index c3d11f6ae1..c8b9c212e8 100644 --- a/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java +++ b/src/main/java/org/isf/medicalstock/gui/MovStockMultipleCharging.java @@ -436,13 +436,16 @@ private JTextField getJTextFieldSearch() { if (lot == null) { return; } + // Lot Cost + BigDecimal cost = new BigDecimal(0); if (GeneralData.LOTWITHCOST) { - BigDecimal cost = askCost(qty); + cost = askCost(qty); if (cost.compareTo(new BigDecimal(0)) == 0) { return; } - lot.setCost(cost); } + isNewLot = true; + lot.setCost(cost); } // Lot Cost BigDecimal cost = lot.getCost();