From 5ab93ba40104a0aa2e86226c083f05652a00d365 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 6 Apr 2026 18:04:47 +0000 Subject: [PATCH] Bug 42225: Improve SQL on spent.pl To test: 1 - Have some received orders and some invoice adjustments 2 - View spent.pl for a fund 3 - Apply patch, restart_all 4 - Reload 5 - Confirm the display has not changed Signed-off-by: David Nind Signed-off-by: Paul Derscheid Signed-off-by: Lucas Gass --- acqui/spent.pl | 86 +++++++++++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 36 deletions(-) diff --git a/acqui/spent.pl b/acqui/spent.pl index 8fe5911ecd..a070471679 100755 --- a/acqui/spent.pl +++ b/acqui/spent.pl @@ -56,46 +56,60 @@ my ($unitprice_field) = C4::Budgets->FieldsForCalculatingFundValues(); my $query = <prepare($query); $sth->execute($bookfund);