Add support for returning soft credit amount
authorJon goldberg - Linux laptop <jon@palantetech.coop>
Tue, 30 Apr 2013 17:12:37 +0000 (10:12 -0700)
committerJon goldberg - Linux laptop <jon@palantetech.coop>
Tue, 30 Apr 2013 23:46:45 +0000 (16:46 -0700)
CRM/Contribute/BAO/Contribution.php

index 934345c191e6712ecd6c9a95c8e0a9f012f3a873..1d2d7b2cad9e142636b5a02f797f7578110c39ec 100644 (file)
@@ -1236,7 +1236,7 @@ LEFT JOIN civicrm_option_value contribution_status ON (civicrm_contribution.cont
   }
 
   /**
-   *  Function to retrieve soft contributon for contribution record.
+   *  Function to retrieve soft contribution for contribution record.
    *  @param array $params an associated array
    *
    *  @return soft contribution id
@@ -1255,7 +1255,8 @@ LEFT JOIN civicrm_option_value contribution_status ON (civicrm_contribution.cont
       }
       $softContribution['soft_credit_to'] = $cs->contact_id;
       $softContribution['soft_credit_id'] = $cs->id;
-
+      $softContribution['soft_credit_amount'] = $cs->amount;
+      
     }
     return $softContribution;
   }