CRM-13973-qa : financial status value should be Paid, when contribution is 'Pending...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 24 Mar 2014 09:56:38 +0000 (15:26 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 24 Mar 2014 09:56:38 +0000 (15:26 +0530)
CRM/Financial/BAO/FinancialItem.php

index b15507d19c8312d073f3a0fa74abbd544d28f942..42f69625dc2a2894ba40d973926b42a32a23f1d8 100644 (file)
@@ -80,7 +80,8 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
     $contributionStatuses = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
     $financialItemStatus = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialItem', 'status_id');
     $itemStatus = NULL;
-    if ($contribution->contribution_status_id == array_search('Completed', $contributionStatuses)) {
+    if ($contribution->contribution_status_id == array_search('Completed', $contributionStatuses)
+      || $contribution->contribution_status_id == array_search('Pending refund', $contributionStatuses)) {
       $itemStatus = array_search('Paid', $financialItemStatus);
     }
     elseif ($contribution->contribution_status_id == array_search('Pending', $contributionStatuses)