From 65210cf55aaba065c35f2f96afd0f812507b576a Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 11 Jun 2026 16:33:57 +0100 Subject: [PATCH] Bug 42827: Restore values to the Items expected column in parcels.pl Test plan: 1. Create an order with multiple items and receive the order in full 2. From the vendor record, click Receive shipments 3. You should be in parcels.pl and the table should show your shipments 4. The Items expected column will show 0 even though you ordered multiple items 5. Apply patch and restart_all 6. Refresh the page, the column should now show a value Signed-off-by: Andrew Fuerste Henry Signed-off-by: Katrin Fischer Signed-off-by: Lucas Gass --- C4/Acquisition.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 52a9c41997..58c19ca6d1 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -2432,7 +2432,8 @@ sub GetInvoices { NULL ) ) AS is_linked_to_subscriptions, - SUM(aqorders.quantityreceived) AS receiveditems + SUM(aqorders.quantityreceived) AS receiveditems, + SUM(aqorders.quantity) AS itemsexpected FROM aqinvoices LEFT JOIN aqbooksellers ON aqbooksellers.id = aqinvoices.booksellerid LEFT JOIN aqorders ON aqorders.invoiceid = aqinvoices.invoiceid