Bug 21598: 'koha_kohadev.aqbudgets.budget_parent_id' isn't in GROUP BY
DBD::mysql::db selectall_hashref failed:
'koha_kohadev.aqbudgets.budget_parent_id' isn't in GROUP BY [for
Statement "
at /home/vagrant/kohaclone/C4/Budgets.pm line 558.
and
at /home/vagrant/kohaclone/C4/Budgets.pm line 565.
Test plan:
hit /cgi-bin/koha/admin/aqbudgets.pl
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
7eb4d3f8a1
commit
60e00a332e
|
|
@ -560,14 +560,14 @@ sub GetBudgetHierarchy {
|
|||
SUM( COALESCE(unitprice_tax_included, ecost_tax_included) * quantity ) AS budget_spent
|
||||
FROM aqorders JOIN aqbudgets USING (budget_id)
|
||||
WHERE quantityreceived > 0 AND datecancellationprinted IS NULL
|
||||
GROUP BY budget_id
|
||||
GROUP BY budget_id, budget_parent_id
|
||||
|, 'budget_id');
|
||||
my $hr_budget_ordered = $dbh->selectall_hashref(q|
|
||||
SELECT aqorders.budget_id, aqbudgets.budget_parent_id,
|
||||
SUM(ecost_tax_included * quantity) AS budget_ordered
|
||||
FROM aqorders JOIN aqbudgets USING (budget_id)
|
||||
WHERE quantityreceived = 0 AND datecancellationprinted IS NULL
|
||||
GROUP BY budget_id
|
||||
GROUP BY budget_id, budget_parent_id
|
||||
|, 'budget_id');
|
||||
my $hr_budget_spent_shipment = $dbh->selectall_hashref(q|
|
||||
SELECT shipmentcost_budgetid as budget_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue