Commit eb0af899 authored by lcdweb's avatar lcdweb

CRM-20145 fix code style issues

parent 1aca1f1e
......@@ -5417,8 +5417,7 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
*/
public static function createProportionalEntry($entityParams, $eftParams) {
$paid = $entityParams['line_item_amount'] * ($entityParams['trxn_total_amount'] / $entityParams['contribution_total_amount']);
// Record Entity Financial Trxn
// CRM-20145
// Record Entity Financial Trxn; CRM-20145
$eftParams['amount'] = CRM_Contribute_BAO_Contribution_Utils::formatAmount($paid);
civicrm_api3('EntityFinancialTrxn', 'create', $eftParams);
}
......
......@@ -496,4 +496,5 @@ LIMIT 1
public static function formatAmount($amount, $decimals = 2) {
return number_format((float) round($amount, (int) $decimals), (int) $decimals, '.', '');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment