$entityObj = CRM_Event_BAO_Participant::getValues($inputParams, $values, $ids);
$entityObj = $entityObj[$participantId];
}
+ else {
+ $entityObj = $contributionDAO;
+ $component = 'contribution';
+ }
$activityType = ($paymentType == 'refund') ? 'Refund' : 'Payment';
self::addActivityForPayment($entityObj, $financialTrxn, $activityType, $component, $contributionId);
*/
public static function addActivityForPayment($entityObj, $trxnObj, $activityType, $component, $contributionId) {
if ($component == 'event') {
- $date = CRM_Utils_Date::isoToMysql($trxnObj->trxn_date);
- $paymentAmount = CRM_Utils_Money::format($trxnObj->total_amount, $trxnObj->currency);
- $eventTitle = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Event', $entityObj->event_id, 'title');
- $subject = "{$paymentAmount} - Offline {$activityType} for {$eventTitle}";
- $targetCid = $entityObj->contact_id;
- // source record id would be the contribution id
- $srcRecId = $contributionId;
+ $title = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Event', $entityObj->event_id, 'title');
}
+ else {
+ $title = ts('Contribution');
+ }
+ $paymentAmount = CRM_Utils_Money::format($trxnObj->total_amount, $trxnObj->currency);
+ $subject = "{$paymentAmount} - Offline {$activityType} for {$title}";
+ $date = CRM_Utils_Date::isoToMysql($trxnObj->trxn_date);
+ $targetCid = $entityObj->contact_id;
+ // source record id would be the contribution id
+ $srcRecId = $contributionId;
// activity params
$activityParams = array(
$baseTrxnId = $baseTrxnId['financialTrxnId'];
}
if (!CRM_Utils_Array::value('total_amount', $total) || $usingLineTotal) {
- // for additional participants
- if ($entityTable == 'civicrm_participant') {
- $ids = CRM_Event_BAO_Participant::getParticipantIds($contributionId);
- $total = 0;
- foreach ($ids as $val) {
- $total += CRM_Price_BAO_LineItem::getLineTotal($val, $entityTable);
- }
- }
- else {
- $total = CRM_Price_BAO_LineItem::getLineTotal($id, $entityTable);
- }
+ $total = CRM_Price_BAO_LineItem::getLineTotal($contributionId);
}
else {
$baseTrxnId = $total['trxn_id'];
$query->_element['contribution_campaign_title'] = $query->_tables['civicrm_campaign'] = 1;
}
- if (!empty($query->_returnProperties['contribution_participant_id'])) {
- $query->_select['contribution_participant_id'] = "civicrm_participant.id as contribution_participant_id";
- $query->_whereTables['contribution_participant'] = $query->_tables['contribution_participant'] = 1;
- }
-
// Adding address_id in a way that is more easily extendable since the above is a bit ... wordy.
$supportedBasicReturnValues = array('address_id');
foreach ($supportedBasicReturnValues as $fieldName) {
$this->_formType = CRM_Utils_Array::value('formType', $_GET);
$enitityType = NULL;
+ $enitityType = 'contribution';
if ($this->_component == 'event') {
$enitityType = 'participant';
$this->_contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $this->_id, 'contribution_id', 'participant_id');
+ $eventId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $this->_id, 'event_id', 'id');
+ $this->_fromEmails = CRM_Event_BAO_Event::getFromEmailIds($eventId);
+ }
+ else {
+ $this->_contributionId = $this->_id;
+ $this->_fromEmails['from_email_id'] = CRM_Core_BAO_Email::getFromEmail();
}
- $eventId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $this->_id, 'event_id', 'id');
- $this->_fromEmails = CRM_Event_BAO_Event::getFromEmailIds($eventId);
$paymentInfo = CRM_Core_BAO_FinancialTrxn::getPartialPaymentWithType($this->_id, $enitityType);
$paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_id, $this->_component, FALSE, TRUE);
public function postProcess() {
$participantId = NULL;
+ $childTab = 'contribute';
if ($this->_component == 'event') {
$participantId = $this->_id;
+ $childTab = 'participant';
}
$submittedValues = $this->controller->exportValues($this->_name);
$submittedValues['confirm_email_text'] = CRM_Utils_Array::value('receipt_text', $submittedValues);
-
+ $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution',
+ 'contribution_status_id',
+ array('labelColumn' => 'name')
+ );
+ $contributionStatusID = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $this->_contributionId, 'contribution_status_id');
+ if ($contributionStatuses[$contributionStatusID] == 'Pending') {
+ CRM_Core_DAO::setFieldValue('CRM_Contribute_DAO_Contribution', $this->_contributionId, 'contribution_status_id', array_search('Partially paid', $contributionStatuses));
+ }
$submittedValues['trxn_date'] = CRM_Utils_Date::processDate($submittedValues['trxn_date'], $submittedValues['trxn_date_time']);
if ($this->_mode) {
// process credit card
$this->assign('contributeMode', 'direct');
$this->processCreditCard($submittedValues);
+ $submittedValues = $this->_params;
}
else {
$defaults = array();
$session = CRM_Core_Session::singleton();
$session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view',
- "reset=1&cid={$this->_contactId}&selectedChild=participant"
+ "reset=1&cid={$this->_contactId}&selectedChild={$childTab}"
));
}
}
);
$this->_params['source'] = ts('Submit Credit Card Payment by: %1', array(1 => $userSortName));
}
-
- // process the additional payment
- $participantId = NULL;
- if ($this->_component == 'event') {
- $participantId = $this->_id;
- }
- $trxnRecord = CRM_Contribute_BAO_Contribution::recordAdditionalPayment($this->_contributionId, $submittedValues, $this->_paymentType, $participantId);
-
- if ($trxnRecord->id && !empty($this->_params['is_email_receipt'])) {
- $sendReceipt = $this->emailReceipt($this->_params);
- }
-
- if ($trxnRecord->id) {
- $statusMsg = ts('The payment record has been processed.');
- if (!empty($this->_params['is_email_receipt']) && $sendReceipt) {
- $statusMsg .= ' ' . ts('A receipt has been emailed to the contributor.');
- }
-
- CRM_Core_Session::setStatus($statusMsg, ts('Complete'), 'success');
- $session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view',
- "reset=1&cid={$this->_contactId}&selectedChild=participant"
- ));
- }
}
/**
NULL,
$recentOther
);
-
- $participantID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment',
- $values['id'], 'participant_id', 'contribution_id'
- );
- $this->assign('contactId', $values['contact_id']);
- $this->assign('hasPayment', $values['id']);
- $this->assign('participantId', $participantID);
+ $contributionStatus = $status[$values['contribution_status_id']];
+ if (in_array($contributionStatus, array('Partially paid', 'Pending refund'))
+ || ($contributionStatus == 'Pending' && $values['is_pay_later'])
+ ) {
+ if ($contributionStatus == 'Pending refund') {
+ $this->assign('paymentButtonName', ts('Record Refund'));
+ }
+ else {
+ $this->assign('paymentButtonName', ts('Record Payment'));
+ }
+ $this->assign('addRecordPayment', TRUE);
+ $this->assign('contactId', $values['contact_id']);
+ $this->assign('componentId', $id);
+ $this->assign('component', 'contribution');
+ }
}
/**
$this->assign('id', $this->_id);
$this->assign('context', $this->_context);
$this->assign('component', $this->_component);
+ if ($this->_component != 'event') {
+ $this->assign('hideButtonLinks', TRUE);
+ }
}
public function browse() {
'contribution_soft_credit_contact_id',
'contribution_soft_credit_amount',
'contribution_soft_credit_type',
- 'contribution_participant_id',
);
/**
// type of selector
$this->_action = $action;
$returnProperties = CRM_Contribute_BAO_Query::selectorReturnProperties();
- $returnProperties['contribution_participant_id'] = 1;
$this->_includeSoftCredits = CRM_Contribute_BAO_Query::isSoftCreditOptionEnabled($this->_queryParams);
$this->_query = new CRM_Contact_BAO_Query(
$this->_queryParams,
$contributionStatuses
);
+ $isPayLater = FALSE;
if ($result->is_pay_later && CRM_Utils_Array::value('contribution_status_name', $row) == 'Pending') {
+ $isPayLater = TRUE;
$row['contribution_status'] .= ' (' . ts('Pay Later') . ')';
$links[CRM_Core_Action::ADD] = array(
'name' => ts('Pay with Credit Card'),
'id' => $result->contribution_id,
'cid' => $result->contact_id,
'cxt' => $this->_context,
- 'pid' => $result->contribution_participant_id,
+ 'compId' => $result->contribution_id,
+ 'comp' => 'contribution',
);
- if (!empty($row['contribution_participant_id'])) {
- if ($row['contribution_status_name'] == 'Partially paid') {
- $links[CRM_Core_Action::ADD] = array(
- 'name' => ts('Record Payment'),
- 'url' => 'civicrm/payment',
- 'qs' => 'reset=1&id=%%pid%%&cid=%%cid%%&action=add&component=event',
- 'title' => ts('Record Payment'),
- );
- }
- if ($row['contribution_status_name'] == 'Pending refund') {
- $links[CRM_Core_Action::ADD] = array(
- 'name' => ts('Record Refund'),
- 'url' => 'civicrm/payment',
- 'qs' => 'reset=1&id=%%pid%%&cid=%%cid%%&action=add&component=event',
- 'title' => ts('Record Refund'),
- );
- }
+ if ($row['contribution_status_name'] == 'Partially paid' || $isPayLater) {
+ $links[CRM_Core_Action::ADD] = array(
+ 'name' => ts('Record Payment'),
+ 'url' => 'civicrm/payment',
+ 'qs' => 'reset=1&id=%%compId%%&cid=%%cid%%&action=add&component=%%comp%%',
+ 'title' => ts('Record Payment'),
+ );
+ }
+
+ if ($row['contribution_status_name'] == 'Pending refund') {
+ $links[CRM_Core_Action::ADD] = array(
+ 'name' => ts('Record Refund'),
+ 'url' => 'civicrm/payment',
+ 'qs' => 'reset=1&id=%%pid%%&cid=%%cid%%&action=add&component=event',
+ 'title' => ts('Record Refund'),
+ );
}
$row['action'] = CRM_Core_Action::formLink(
if ($entityName == 'participant') {
$contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $entityId, 'contribution_id', 'participant_id');
- $financialTypeId = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $contributionId, 'financial_type_id');
-
- if ($contributionId && $financialTypeId) {
- $statusId = CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name');
- $refundStatusId = CRM_Core_OptionGroup::getValue('contribution_status', 'Refunded', 'name');
-
- $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' "));
- $toFinancialAccount = CRM_Contribute_PseudoConstant::financialAccountType($financialTypeId, $relationTypeId);
- $feeRelationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Expense Account is' "));
- $feeFinancialAccount = CRM_Contribute_PseudoConstant::financialAccountType($financialTypeId, $feeRelationTypeId);
-
- if (empty($lineItemTotal)) {
- $ids = CRM_Event_BAO_Participant::getParticipantIds($contributionId);
- if (count($ids) > 1) {
- $total = 0;
- foreach ($ids as $val) {
- $total += CRM_Price_BAO_LineItem::getLineTotal($val, 'civicrm_participant');
- }
- $lineItemTotal = $total;
- }
- else {
- $lineItemTotal = CRM_Price_BAO_LineItem::getLineTotal($entityId, 'civicrm_participant');
- }
- }
- $sqlFtTotalAmt = "
+ }
+ else {
+ $contributionId = $entityId;
+ }
+ $financialTypeId = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $contributionId, 'financial_type_id');
+
+ if ($contributionId && $financialTypeId) {
+ $statusId = CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name');
+ $refundStatusId = CRM_Core_OptionGroup::getValue('contribution_status', 'Refunded', 'name');
+
+ $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' "));
+ $toFinancialAccount = CRM_Contribute_PseudoConstant::financialAccountType($financialTypeId, $relationTypeId);
+ $feeRelationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Expense Account is' "));
+ $feeFinancialAccount = CRM_Contribute_PseudoConstant::financialAccountType($financialTypeId, $feeRelationTypeId);
+
+ if (empty($lineItemTotal)) {
+ $lineItemTotal = CRM_Price_BAO_LineItem::getLineTotal($contributionId);
+ }
+ $sqlFtTotalAmt = "
SELECT SUM(ft.total_amount)
FROM civicrm_financial_trxn ft
- LEFT JOIN civicrm_entity_financial_trxn eft ON (ft.id = eft.financial_trxn_id AND eft.entity_table = 'civicrm_contribution')
- LEFT JOIN civicrm_contribution c ON (eft.entity_id = c.id)
- LEFT JOIN civicrm_participant_payment pp ON (pp.contribution_id = c.id)
-WHERE pp.participant_id = {$entityId} AND ft.to_financial_account_id != {$toFinancialAccount} AND ft.to_financial_account_id != {$feeFinancialAccount}
+ INNER JOIN civicrm_entity_financial_trxn eft ON (ft.id = eft.financial_trxn_id AND eft.entity_table = 'civicrm_contribution' AND eft.entity_id = {$contributionId})
+WHERE ft.to_financial_account_id != {$toFinancialAccount} AND ft.to_financial_account_id != {$feeFinancialAccount}
AND ft.status_id IN ({$statusId}, {$refundStatusId})
";
- $ftTotalAmt = CRM_Core_DAO::singleValueQuery($sqlFtTotalAmt);
- $value = 0;
- if ($ftTotalAmt) {
- $value = $paymentVal = $lineItemTotal - $ftTotalAmt;
+ $ftTotalAmt = CRM_Core_DAO::singleValueQuery($sqlFtTotalAmt);
+ $value = 0;
+ if (!$ftTotalAmt) {
+ $ftTotalAmt = 0;
+ }
+ $value = $paymentVal = $lineItemTotal - $ftTotalAmt;
+ if ($returnType) {
+ $value = array();
+ if ($paymentVal < 0) {
+ $value['refund_due'] = $paymentVal;
}
- if ($returnType) {
- $value = array();
- if ($paymentVal < 0) {
- $value['refund_due'] = $paymentVal;
- }
- elseif ($paymentVal > 0) {
- $value['amount_owed'] = $paymentVal;
- }
- elseif ($lineItemTotal == $ftTotalAmt) {
- $value['full_paid'] = $ftTotalAmt;
+ elseif ($paymentVal > 0) {
+ $value['amount_owed'] = $paymentVal;
}
+ elseif ($lineItemTotal == $ftTotalAmt) {
+ $value['full_paid'] = $ftTotalAmt;
}
}
}
// the recordAdjustedAmt code would execute over here
$ids = CRM_Event_BAO_Participant::getParticipantIds($contributionId);
if (count($ids) > 1) {
- $total = 0;
- foreach ($ids as $val) {
- $total += CRM_Price_BAO_LineItem::getLineTotal($val, 'civicrm_participant');
- }
- $updatedAmount = $total;
+ $updatedAmount = CRM_Price_BAO_LineItem::getLineTotal($contributionId);
}
else {
$updatedAmount = $params['amount'];
CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, FALSE, TRUE);
}
elseif (!$form->_mode) {
- $form->addElement('checkbox', 'record_contribution', ts('Record Invoice?'), NULL,
+ $form->addElement('checkbox', 'record_contribution', ts('Record Payment?'), NULL,
array('onclick' => "return showHideByValue('record_contribution','','payment_information','table-row','radio',false);")
);
// Check permissions for financial type first
);
$this->assign('hasPayment', $this->_paymentId);
+ $this->assign('componentId', $this->_id);
+ $this->assign('component', 'event');
// CRM-12615 - Get payment information from the primary registration
if ((!$this->_paymentId) && ($this->_action == CRM_Core_Action::UPDATE)) {
$ids = CRM_Event_BAO_Participant::getParticipantIds($this->_contributionId);
if (count($ids) > 1) {
- $total = 0;
- foreach ($ids as $val) {
- $total += CRM_Price_BAO_LineItem::getLineTotal($val, 'civicrm_participant');
- }
+ $total = CRM_Price_BAO_LineItem::getLineTotal($this->_contributionId);
$this->assign('totalLineTotal', $total);
-
- $lineItemTotal = CRM_Price_BAO_LineItem::getLineTotal($this->_participantId, 'civicrm_participant');
- $this->assign('lineItemTotal', $lineItemTotal);
+ $this->assign('lineItemTotal', $total);
}
$title = ts("Change selections for %1", array(1 => $this->_contributorDisplayName));
$participantID, 'id', 'participant_id'
);
$this->assign('hasPayment', $paymentId);
+ $this->assign('componentId', $participantID);
+ $this->assign('component', 'event');
if ($parentParticipantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant',
$participantID, 'registered_by_id'
</div>
<table class="form-layout-compressed">
<tr>
- <td class="font-size12pt label"><strong>{ts}Participant{/ts}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
+ <td class="font-size12pt label"><strong>{if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
</tr>
{if $contributionMode}
<tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
{/if}
- <tr>
- <td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
- </tr>
+ {if $eventName}
+ <tr>
+ <td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
+ </tr>
+ {/if}
<tr class="crm-payment-form-block-total_amount">
<td class="label">{$form.total_amount.label}</td>
<td>
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span>
<i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span>
</a>
+ {if $paymentButtonName}
+ <a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$cid`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
+ {/if}
{/if}
{if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
<td>{$thankyou_date|crmDate}</td>
</tr>
{/if}
- {if $participantId and $hasPayment}
+ {if $addRecordPayment}
<tr>
<td class='label'>{ts}Fees{/ts}</td>
<td id='payment-info'></td>
</div>
</fieldset>
{/if}
-{if $participantId and $hasPayment}
- {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
+{if $addRecordPayment}
+ {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
{/if}
<div class="crm-submit-buttons">
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
{/if}
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
+ {if $paymentButtonName}
+ <a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$cid`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
+ {/if}
{/if}
{if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{if $show eq 'event-payment'}
+{if $show eq 'payments'}
{literal}
<script type='text/javascript'>
CRM.$(function($) {
if ($("#payment-info").length) {
- var dataUrl = {/literal}'{crmURL p="civicrm/payment/view" h=0 q="action=browse&id=$participantId&cid=`$contactId`&component=event&context=payment_info&snippet=4"}'{literal};
+ var dataUrl = {/literal}'{crmURL p="civicrm/payment/view" h=0 q="action=browse&id=$componentId&cid=`$contactId`&component=$component&context=payment_info&snippet=4"}'{literal};
$.ajax({
url: dataUrl,
async: false,
<tr class="columnheader">
{if $component eq "event"}
<th>{ts}Total Fee(s){/ts}</th>
+ {else}
+ <th>{ts}Contribution Amount(s){/ts}</th>
{/if}
<th class="right">{ts}Total Paid{/ts}</th>
<th class="right">{ts}Balance{/ts}</th>
<td>{$paymentInfo.total|crmMoney}</td>
<td class='right'>
{if $paymentInfo.paid > 0}
- {$paymentInfo.paid|crmMoney}<br/>
- <a class="crm-hover-button action-item crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&cid=`$cid`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&action=browse"}'>
- <i class="crm-i fa-list"></i>
- {ts}view payments{/ts}
- </a>
+ {$paymentInfo.paid|crmMoney}
+ {if !$hideButtonLinks}
+ <br/>
+ <a class="crm-hover-button action-item crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&cid=`$cid`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&action=browse"}'>
+ <i class="crm-i fa-list"></i>
+ {ts}view payments{/ts}
+ </a>
+ {/if}
{/if}
</td>
<td class="right" id="payment-info-balance" data-balance="{$paymentInfo.balance}">{$paymentInfo.balance|crmMoney}</td>
</tr>
</table>
-{if $paymentInfo.balance and !$paymentInfo.payLater}
+{if $paymentInfo.balance and !$paymentInfo.payLater && !$hideButtonLinks}
{if $paymentInfo.balance > 0}
{assign var=paymentButtonName value='Record Payment'}
{elseif $paymentInfo.balance < 0}
{* JS block for ADD or UPDATE actions only *}
{if $action eq 1 or $action eq 2}
{if $participantId and $hasPayment}
- {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
+ {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
{/if}
{*include custom data js file*}
{/foreach}
</table>
{if $participantId and $hasPayment}
- {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
+ {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
{/if}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{if $accessContribution and $rows.0.contribution_id}