}
}
+ // If values have been supplied for recurring contribution fields, open the recurring contributions pane.
+ foreach (array('contribution_status_id', 'payment_processor_id', 'processor_id', 'trxn_id') as $fieldName) {
+ if (!empty($form->_formValues['contribution_recur_' . $fieldName])) {
+ $form->assign('contribution_recur_pane_open', TRUE);
+ break;
+ }
+ }
+
// Add field to check if payment is made for recurring contribution
$recurringPaymentOptions = array(
1 => ts('All recurring contributions'),
$query->_tables['civicrm_contribution'] = $query->_whereTables['civicrm_contribution'] = 1;
return;
- case 'contribution_recur_processor_id':
case 'contribution_recur_payment_processor_id':
+ $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_contribution_recur.payment_processor_id", $op, $value, "String");
+ $paymentProcessors = civicrm_api3('PaymentProcessor', 'get', array());
+ $paymentProcessorNames = array();
+ foreach ($value as $paymentProcessorId) {
+ $paymentProcessorNames[] = $paymentProcessors['values'][$paymentProcessorId]['name'];
+ }
+ $query->_qill[$grouping][] = ts("Recurring Contribution Payment Processor %1 %2", array(1 => $op, 2 => implode(', ', $paymentProcessorNames)));
+ $query->_tables['civicrm_contribution_recur'] = $query->_whereTables['civicrm_contribution_recur'] = 1;
+ return;
+
+ case 'contribution_recur_processor_id':
case 'contribution_recur_trxn_id':
$fieldName = str_replace('contribution_recur_', '', $name);
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_contribution_recur.{$fieldName}",
$op, $value, "String"
);
+ $recurFields = CRM_Contribute_DAO_ContributionRecur::fields();
+ $query->_qill[$grouping][] = ts("Recurring Contribution %1 %2 '%3'", array(1 => $recurFields[$fieldName]['title'], 2 => $op, 3 => $value));
$query->_tables['civicrm_contribution_recur'] = $query->_whereTables['civicrm_contribution_recur'] = 1;
return;
<p>{ts}In the process of setting up CiviCRM components or configuring pages and profiles, you might have created test contributions, activities, participants, pledges, etc.{/ts}</p>
<p>{ts}Once you have finished your testing, it is a good idea to clean up by finding your test records and deleting them.{/ts}</p>
{/htxt}
+
+{htxt id="processor-id-title"}
+{ts}Processor ID{/ts}
+{/htxt}
+{htxt id="processor-id"}
+ <p>{ts}This is the payment processor's own ID for the recurring contribution. Ideally it should be unique, but in practice may not be.{/ts}</p>
+{/htxt}
+
+{htxt id="transaction-id-title"}
+{ts}Transaction ID{/ts}
+{/htxt}
+{htxt id="transaction-id"}
+ <p>{ts}Unique reference for the recurring contribution. May be made up of other fields, e.g. bank ID, account number, etc.{/ts}</p>
+{/htxt}
</td>
</tr>
<tr>
- <td>{ts}Transaction ID{/ts}</td>
+ <td>{ts}Processor ID{/ts} {help id="processor-id" file="CRM/Contact/Form/Search/Advanced"}</td>
<td></td>
<td col='span2'>
- {$form.contribution_recur_trxn_id.html}
+ {$form.contribution_recur_processor_id.html}
</td>
</tr>
<tr>
- <td>{ts}Processor ID{/ts}</td>
+ <td>{ts}Transaction ID{/ts} {help id="transaction-id" file="CRM/Contact/Form/Search/Advanced"}</td>
<td></td>
<td col='span2'>
- {$form.contribution_recur_processor_id.html}
+ {$form.contribution_recur_trxn_id.html}
</td>
</tr>
{if $contributionRecurGroupTree}