Browse Source

Fix regression

Laurent Destailleur 1 year ago
parent
commit
7a74fa25e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/expedition/js/lib_dispatch.js.php

+ 1 - 1
htdocs/expedition/js/lib_dispatch.js.php

@@ -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;