// if paid event add a contribution record
//if primary participant contributing additional amount
//append (multiple participants) to its fee level. CRM-4196.
- $isAdditionalAmount = FALSE;
if (count($params) > 1) {
- $isAdditionalAmount = TRUE;
+ $value['amount_level'] .= ts(' (multiple participants)') . CRM_Core_DAO::VALUE_SEPARATOR;
}
//passing contribution id is already registered.
- $contribution = self::processContribution($this, $value, $result, $contactID, $pending, $isAdditionalAmount, $this->_paymentProcessor);
+ $contribution = self::processContribution($this, $value, $result, $contactID, $pending, $this->_paymentProcessor);
$value['contributionID'] = $contribution->id;
$value['contributionTypeID'] = $contribution->financial_type_id;
$value['receive_date'] = $contribution->receive_date;
* @param array $result
* @param int $contactID
* @param bool $pending
- * @param bool $isAdditionalAmount
* @param array $paymentProcessor
*
* @return \CRM_Contribute_BAO_Contribution
*/
public static function processContribution(
&$form, $params, $result, $contactID,
- $pending = FALSE, $isAdditionalAmount = FALSE,
+ $pending = FALSE,
$paymentProcessor = NULL
) {
$transaction = new CRM_Core_Transaction();
if (!empty($form->_values['event']['is_email_confirm'])) {
$receiptDate = $now;
}
- //CRM-4196
- if ($isAdditionalAmount) {
- $params['amount_level'] = $params['amount_level'] . ts(' (multiple participants)') . CRM_Core_DAO::VALUE_SEPARATOR;
- }
// CRM-20264: fetch CC type ID and number (last 4 digit) and assign it back to $params
CRM_Contribute_Form_AbstractEditPayment::formatCreditCardDetails($params);