diff --git a/C4/Budgets.pm b/C4/Budgets.pm index 83acec0a92..fe3e842a17 100644 --- a/C4/Budgets.pm +++ b/C4/Budgets.pm @@ -755,6 +755,7 @@ sub GetBudgetHierarchy { SELECT shipmentcost_budgetid as budget_id, SUM(shipmentcost) as shipmentcost FROM aqinvoices + WHERE shipmentcost_budgetid IS NOT NULL GROUP BY shipmentcost_budgetid |, 'budget_id' );