From: Pradeep Nayak Date: Tue, 12 Jan 2016 12:51:08 +0000 (+0530) Subject: CRM-16259, Implemented payment API for get and create via UI X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d42c359dadfa38a0f762155b3ed2e998e32327b4;p=civicrm-core.git CRM-16259, Implemented payment API for get and create via UI ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index c39a490372..e86b91fabd 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -583,6 +583,11 @@ class CRM_Contribute_BAO_Query { $query->_tables['civicrm_product'] = $query->_whereTables['civicrm_product'] = 1; return; + case 'contribution_is_payment': + $query->_where[$grouping][] = " civicrm_financial_trxn.is_payment $op $value"; + $query->_tables['contribution_financial_trxn'] = $query->_whereTables['contribution_financial_trxn'] = 1; + return; + default: //all other elements are handle in this case $fldName = substr($name, 13);