Skip to content

Commit

Permalink
Merge pull request #15621 from eileenmcnaughton/float
Browse files Browse the repository at this point in the history
Cast result of getContributionBalance to float to match comment block.
  • Loading branch information
seamuslee001 authored Oct 27, 2019
2 parents 75d91d0 + ee080cf commit 19788b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -4166,7 +4166,7 @@ public static function getContributionBalance($contributionId, $contributionTota
$contributionTotal = CRM_Price_BAO_LineItem::getLineTotal($contributionId);
}

return CRM_Utils_Money::subtractCurrencies(
return (float) CRM_Utils_Money::subtractCurrencies(
$contributionTotal,
CRM_Core_BAO_FinancialTrxn::getTotalPayments($contributionId, TRUE) ?: 0,
CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $contributionId, 'currency')
Expand Down

0 comments on commit 19788b7

Please sign in to comment.