],
'grouping' => 'contri-fields',
],
+ 'civicrm_pledge_payment' => [
+ 'dao' => 'CRM_Pledge_DAO_PledgePayment',
+ 'filters' => [
+ 'contribution_id' => [
+ 'title' => ts('Contribution is a pledge payment'),
+ ],
+ ],
+ ],
'civicrm_contribution_soft' => [
'dao' => 'CRM_Contribute_DAO_ContributionSoft',
'fields' => [
$this->joinAddressFromContact();
$this->joinEmailFromContact();
+ //for pledge payment
+ if ($this->isTableSelected('civicrm_pledge_payment')) {
+ $this->_from .= "
+ LEFT JOIN civicrm_pledge_payment {$this->_aliases['civicrm_pledge_payment']} ON {$this->_aliases['civicrm_contribution']}.id = {$this->_aliases['civicrm_pledge_payment']}.contribution_id
+ ";
+ }
+
// include contribution note
if (!empty($this->_params['fields']['contribution_note']) ||
!empty($this->_params['note_value'])
'batch_id' => ['title' => ts('Batch Title')],
],
],
+ 'civicrm_pledge_payment' => [
+ 'dao' => 'CRM_Pledge_DAO_PledgePayment',
+ 'filters' => [
+ 'contribution_id' => [
+ 'title' => ts('Contribution is a pledge payment'),
+ ],
+ ],
+ ],
'civicrm_contribution_soft' => [
'dao' => 'CRM_Contribute_DAO_ContributionSoft',
'fields' => [
$this->joinPhoneFromContact();
$this->joinEmailFromContact();
+ //for pledge payment
+ if ($this->isTableSelected('civicrm_pledge_payment')) {
+ $this->_from .= "
+ LEFT JOIN civicrm_pledge_payment {$this->_aliases['civicrm_pledge_payment']} ON {$this->_aliases['civicrm_contribution']}.id = {$this->_aliases['civicrm_pledge_payment']}.contribution_id
+ ";
+ }
+
//for contribution batches
if ($this->isTableSelected('civicrm_batch')) {
$this->_from .= "