Skip to content

Commit

Permalink
CRM-17151 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Oct 17, 2017
1 parent 329527f commit 18e316b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Price/BAO/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,12 @@ protected function _recordAdjustedAmt($updatedAmount, $contributionId, $taxAmoun
);
$adjustedTrxn = CRM_Core_BAO_FinancialTrxn::create($adjustedTrxnValues);
}
// CRM-17151: Update the contribution status to completed if balance is zero,
// because due to sucessive fee change will leave the related contribution status incorrect
else {
CRM_Core_DAO::setFieldValue('CRM_Contribute_DAO_Contribution', $contributionId, 'contribution_status_id', $completedStatusId);
}

return $adjustedTrxn;
}

Expand Down

0 comments on commit 18e316b

Please sign in to comment.