Fix regression

This commit is contained in:
Laurent Destailleur 2023-10-18 12:34:49 +02:00
parent 8daf1db666
commit 7a74fa25e3

View File

@ -98,7 +98,7 @@ function addDispatchLine(index, type, mode) {
}
console.log("expedition/js/lib_dispatch.js.php qtyDispatched=" + qtyDispatched + " qtyOrdered=" + qtyOrdered+ " qty=" + qty);
if ((mode === 'lessone' && qty <= 1) || (qtyOrdered - qtyDispatched < 1)) {
if (qty <= 1) {
window.alert("Remain quantity to dispatch is too low to be split");
} else {
var oldlineqty = qtyDispatched;