From d6d95f7d7cad03367e199a062baada296fc30343 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: Pedro Amorim --- C4/Acquisition.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index be67162a9c..63cd6cc489 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