* @param $params
* @param $result
* @param $contactID
- * @param $contributionType
+ * @param $financialType
* @param bool $deductibleMode
* @param bool $pending
* @param bool $online
$params,
$result,
$contactID,
- $contributionType,
+ $financialType,
$deductibleMode = TRUE,
$pending = FALSE,
$online = TRUE
$recurringContributionID = NULL;
// add these values for the recurringContrib function ,CRM-10188
- $params['financial_type_id'] = $contributionType->id;
+ $params['financial_type_id'] = $financialType->id;
//@todo - this is being set from the form to resolve CRM-10188 - an
// eNotice caused by it not being set @ the front end
// however, we then get it being over-written with null for backend contributions
if(!isset($params['is_email_receipt'])){
$params['is_email_receipt'] = CRM_Utils_Array::value( 'is_email_receipt', $form->_values );
}
- $recurringContributionID = self::processRecurringContribution($form, $params, $contactID, $contributionType, $online);
+ $recurringContributionID = self::processRecurringContribution($form, $params, $contactID, $financialType, $online);
// CRM-11885
// if non_deductible_amount exists i.e. Additional Details fieldset was opened [and staff typed something] -> keep it.
// $contributionType->is_deductible and whether there is a product (premium).
else {
//if ($contributionType->is_deductible && $deductibleMode) {
- if ($contributionType->is_deductible) {
+ if ($financialType->is_deductible) {
if ($online && isset($params['selectProduct'])) {
$selectProduct = CRM_Utils_Array::value('selectProduct', $params);
}
// first create the contribution record
$contribParams = array(
'contact_id' => $contactID,
- 'financial_type_id' => $contributionType->id,
+ 'financial_type_id' => $financialType->id,
'contribution_page_id' => $contributionPageId,
'receive_date' => (CRM_Utils_Array::value('receive_date', $params)) ? CRM_Utils_Date::processDate($params['receive_date']) : date('YmdHis'),
'non_deductible_amount' => $nonDeductibleAmount,