Skip to content
Snippets Groups Projects
Commit 0b108560 authored by Edzelopez's avatar Edzelopez
Browse files

Merge pull request #179 from Edzelopez/RG-205

#37 --worked on remainder amount calculations
parents 34e6f3e8 5438763b
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ function quickAllocate($grantProgram, $value) {
$amountEligible = $grantProgram->remainder_amount;
}
$value['amount_total'] = str_replace(',', '', $value['amount_total']);
$requestedAmount = ((($value['assessment'] / 100) * $value['amount_total']) * ($grantThresholds['Funding factor'] / 100));
$requestedAmount = CRM_Utils_Money::format((($value['assessment']/100) * $value['amount_total'] * ($grantThresholds['Funding factor'] / 100)), NULL, NULL, TRUE);
if ($requestedAmount > $amountEligible) {
$requestedAmount = $amountEligible;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment