This commit is contained in:
Florian HENRY 2022-11-23 08:26:12 +01:00
parent 029e1debdc
commit b5dac0e5f5

View File

@ -2162,7 +2162,7 @@ class Expedition extends CommonObject
} else {
$qty = $obj->edbqty;
}
if ($qty <= 0) {
if ($qty <= 0 || ($qty < 0 && !getDolGlobalInt('SHIPMENT_ALLOW_NEGATIVE_QTY'))) {
continue;
}
dol_syslog(get_class($this) . "::valid movement index " . $i . " ed.rowid=" . $obj->rowid . " edb.rowid=" . $obj->edbrowid);