Ejegg has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/331372 )

Change subject: Only send failmail when refund difference is > 2%
......................................................................

Only send failmail when refund difference is > 2%

Change-Id: I900a22947fb149e4528f11464896c4c504804528
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.module
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/72/331372/1

diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module 
b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
index 559ca66..7fe3d79 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
@@ -2163,7 +2163,7 @@
         }
     }
 
-    if ($amount_scammed > 0) {
+    if ($amount_scammed > 0.02 * $original_amount) {
       wmf_common_failmail('wmf_civicrm', "Refund amount mismatch for : 
$contribution_id, difference is {$amount_scammed}. See "
         . CRM_Utils_System::url('civicrm/contact/view/contribution', 
array('reset' => 1, 'id' => $contribution_id, 'action' => 'view'), TRUE));
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/331372
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I900a22947fb149e4528f11464896c4c504804528
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to