parent::preProcess();
}
- // check that all the contribution ids have status Completed, Pending, Refunded.
+ // check that all the contribution ids have status Completed, Pending, Refunded, or Partially Paid.
$this->_contributionStatusId = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
- $status = ['Completed', 'Pending', 'Refunded'];
+ $status = ['Completed', 'Pending', 'Refunded', 'Partially paid'];
$statusId = [];
foreach ($this->_contributionStatusId as $key => $value) {
if (in_array($value, $status)) {
$query = "SELECT count(*) FROM civicrm_contribution WHERE contribution_status_id NOT IN ($Id) AND {$this->_componentClause}";
$count = CRM_Core_DAO::singleValueQuery($query);
if ($count != 0) {
- CRM_Core_Error::statusBounce(ts('Please select only contributions with Completed, Pending, Refunded status.'));
+ CRM_Core_Error::statusBounce(ts('Please select only contributions with Completed, Pending, Refunded, or Partially Paid status.'));
}
// we have all the contribution ids, so now we get the contact ids