From 11723ec4c587c191ea31543269d097b8a2d2fd8c Mon Sep 17 00:00:00 2001 From: DasTapan Date: Fri, 15 Aug 2025 09:58:04 +0530 Subject: [PATCH] Include inactive items in distribution summary report --- app/helpers/dashboard_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index 4a81cb3f11..5496c55c54 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -19,7 +19,7 @@ def recently_added_user_display_text(user) private def total_distributed_unformatted(range = selected_range) - LineItem.active.where(itemizable: current_organization.distributions.during(range)).sum(:quantity) + LineItem.where(itemizable: current_organization.distributions.during(range)).sum(:quantity) end def future_distributed_unformatted