From 4e754fb70db56241582a088449560d4869a5b39b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 15 Dec 2014 12:41:26 -0500 Subject: [PATCH] Use total contribution amount instead of net amount for progress bars. --- CRM/Wci/BAO/ProgressBar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Wci/BAO/ProgressBar.php b/CRM/Wci/BAO/ProgressBar.php index 58fc5cc..182b7d6 100644 --- a/CRM/Wci/BAO/ProgressBar.php +++ b/CRM/Wci/BAO/ProgressBar.php @@ -61,7 +61,7 @@ class CRM_Wci_BAO_ProgressBar extends CRM_Wci_DAO_ProgressBar { */ public static function getPBCollectedAmount($pbId) { $amount = 0; - $query = "SELECT sum((civicontrib.net_amount * wcipb.percentage) / 100) as amount + $query = "SELECT sum((civicontrib.total_amount * wcipb.percentage) / 100) as amount FROM civicrm_wci_progress_bar_formula wcipb JOIN civicrm_contribution civicontrib ON wcipb.contribution_page_id = civicontrib.contribution_page_id -- 2.25.1