Skip to content
Snippets Groups Projects
Commit 5438763b authored by Edselopez's avatar Edselopez
Browse files

#37 --worked on remainder amount calculations

parent 34e6f3e8
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