) {
return;
}
+ if (($params['prevContribution']->contribution_status_id == array_search('Partially paid', $contributionStatus))
+ && $params['contribution']->contribution_status_id == array_search('Completed', $contributionStatus)
+ && $context == 'changedStatus'
+ ) {
+ return;
+ }
if ($context == 'changedAmount' || $context == 'changeFinancialType') {
$itemAmount = $params['trxnParams']['total_amount'] = $params['total_amount'] - $params['prevContribution']->total_amount;
}
'Pending' => array('Cancelled', 'Completed', 'Failed'),
'In Progress' => array('Cancelled', 'Completed', 'Failed'),
'Refunded' => array('Cancelled', 'Completed'),
+ 'Partially paid' => array('Completed'),
);
if (!in_array($contributionStatuses[$fields['contribution_status_id']], $checkStatus[$contributionStatuses[$values['contribution_status_id']]])) {