From 00a936bffa5adae95fe73f3468a1ae7634485fe5 Mon Sep 17 00:00:00 2001 From: thomas-Ngr Date: Thu, 26 Oct 2023 12:42:07 +0200 Subject: [PATCH] fix #18654 : orders are partially received even if all products have been received (#26358) --- htdocs/reception/class/reception.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php index 8518709eddd..56b236ad260 100644 --- a/htdocs/reception/class/reception.class.php +++ b/htdocs/reception/class/reception.class.php @@ -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; } }