From d42c359dadfa38a0f762155b3ed2e998e32327b4 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 12 Jan 2016 18:21:08 +0530 Subject: [PATCH] CRM-16259, Implemented payment API for get and create via UI ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- CRM/Contribute/BAO/Query.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.25.1