2
0
forked from Wavyzz/dolibarr

Fix warning qodana

This commit is contained in:
Laurent Destailleur
2023-06-29 13:47:28 +02:00
parent 673236cf4b
commit e6d77f991d
3 changed files with 17 additions and 15 deletions

View File

@@ -101,8 +101,8 @@ function addDispatchLine(index, type, mode) {
if (qty <= 1) {
window.alert("Remain quantity to dispatch is too low to be split");
} else {
oldlineqty = qtyDispatched;
newlineqty = qtyOrdered - qtyDispatched;
var oldlineqty = qtyDispatched;
var newlineqty = qtyOrdered - qtyDispatched;
if (newlineqty <= 0) {
newlineqty = qty - 1;
oldlineqty = 1;