/** * Creates a new StewardshipContributionAmount record for a given amount and fund ID. * @param integer $intStewardshipFundId * @param float $fltAmount * @param boolean $blnRefreshTotalAmount whether or not to make the call to Refresh(); * @return StewardshipContributionAmount */ public function CreateAmount($intStewardshipFundId, $fltAmount, $blnRefreshTotalAmount = true) { $objAmount = new StewardshipContributionAmount(); $objAmount->StewardshipContribution = $this; $objAmount->StewardshipFundId = $intStewardshipFundId; $objAmount->Amount = $fltAmount; $objAmount->Save(); if ($blnRefreshTotalAmount) { $this->RefreshTotalAmount(); } return $objAmount; }