mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix regression
This commit is contained in:
parent
8daf1db666
commit
7a74fa25e3
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user