some comment fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 12 Feb 2015 04:30:00 +0000 (17:30 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Thu, 12 Feb 2015 04:30:00 +0000 (17:30 +1300)
CRM/Contribute/BAO/Contribution.php

index ab5a7b8d7ffff88987474b74c7084edca1de8cb9..fcbdacecb892481cc991d77f03ad4382611e137e 100644 (file)
@@ -64,6 +64,15 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
    */
   public $_component = NULL;
 
+  /**
+   * Possibly obsolete variable.
+   *
+   * If you use it please explain why it is set in the create function here.
+   *
+   * @var string
+   */
+  public $trxn_result_code;
+
   /**
    * Class constructor.
    *
@@ -241,9 +250,13 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
   }
 
   /**
-   * @param array $params
+   * Calculate net_amount & fee_amount if they are not set.
    *
-   * @return mixed
+   * Net amount should be total - fee.
+   * This should only be called for new contributions.
+   *
+   * @param array $params
+   *   Params for a new contribution before they are saved.
    */
   public static function calculateMissingAmountParams(&$params) {
     if (!isset($params['fee_amount'])) {