Skip to content

Commit

Permalink
Merge pull request #9592 from kainukempowerment/CRM-19803
Browse files Browse the repository at this point in the history
Replaced inner with left joins to show refunds CRM-19803
  • Loading branch information
monishdeb authored Jan 4, 2017
2 parents 648631c + 800f0fd commit 47d11b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -4076,9 +4076,9 @@ public static function getPaymentInfo($id, $component, $getTrxnInfo = FALSE, $us
LEFT JOIN civicrm_entity_financial_trxn eft ON (eft.entity_id = con.id AND eft.entity_table = 'civicrm_contribution')
INNER JOIN civicrm_financial_trxn ft ON ft.id = eft.financial_trxn_id
AND ft.to_financial_account_id != %2
INNER JOIN civicrm_entity_financial_trxn ef ON (ef.financial_trxn_id = ft.id AND ef.entity_table = 'civicrm_financial_item')
LEFT JOIN civicrm_entity_financial_trxn ef ON (ef.financial_trxn_id = ft.id AND ef.entity_table = 'civicrm_financial_item')
LEFT JOIN civicrm_financial_item fi ON fi.id = ef.entity_id
INNER JOIN civicrm_financial_account fa ON fa.id = fi.financial_account_id
LEFT JOIN civicrm_financial_account fa ON fa.id = fi.financial_account_id
WHERE con.id = %1 AND ft.is_payment = 1
GROUP BY ft.id";
Expand Down

0 comments on commit 47d11b6

Please sign in to comment.