fix #18654 : orders are partially received even if all products have been received (#26358)

This commit is contained in:
thomas-Ngr 2023-10-26 12:42:07 +02:00 committed by GitHub
parent f8d81e3ae0
commit 00a936bffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,6 +742,8 @@ class Reception extends CommonObject
foreach ($supplierorderdispatch->lines as $dispatch_line) {
if (array_key_exists($dispatch_line->fk_product, $qty_received)) {
$qty_received[$dispatch_line->fk_product] += $dispatch_line->qty;
} else {
$qty_received[$dispatch_line->fk_product] = $dispatch_line->qty;
}
}