) {
return;
}
- if (($previousContributionStatus == 'Partially paid')
- && $params['contribution']->contribution_status_id == array_search('Completed', $contributionStatus)
+ if ((($previousContributionStatus == 'Partially paid'
+ && $params['contribution']->contribution_status_id == array_search('Completed', $contributionStatus))
+ || ($previousContributionStatus == 'Pending'
+ && $params['contribution']->contribution_status_id == array_search('Partially paid', $contributionStatus)))
&& $context == 'changedStatus'
) {
return;
$checkStatus = array(
'Cancelled' => array('Completed', 'Refunded'),
'Completed' => array('Cancelled', 'Refunded', 'Chargeback'),
- 'Pending' => array('Cancelled', 'Completed', 'Failed'),
+ 'Pending' => array('Cancelled', 'Completed', 'Failed', 'Partially paid'),
'In Progress' => array('Cancelled', 'Completed', 'Failed'),
'Refunded' => array('Cancelled', 'Completed'),
'Partially paid' => array('Completed'),