Skip to content

Commit

Permalink
--CRM-20585, fixed financial trxn entry for deferred revenue
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak committed May 17, 2017
1 parent e3157e2 commit f54d9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/BAO/FinancialTrxn.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@ public static function createDeferredTrxn($lineItems, $contributionDetails, $upd
}
foreach ($results['values'] as $result) {
if ($result['account_relationship'] == $accountRel) {
$trxnParams['to_financial_account_id'] = $result['financial_account_id'];
$trxnParams['from_financial_account_id'] = $result['financial_account_id'];
}
else {
$trxnParams['from_financial_account_id'] = $result['financial_account_id'];
$trxnParams['to_financial_account_id'] = $result['financial_account_id'];
}
}
foreach ($deferredRevenue['revenue'] as $revenue) {
Expand Down

0 comments on commit f54d9ae

Please sign in to comment.