Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
851d7eed
Commit
851d7eed
authored
12 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #290 from dlobo/CRM-12256
CRM-12256
parents
d0fb4ce4
d5828a02
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contribute/BAO/ContributionRecur.php
+11
-9
11 additions, 9 deletions
CRM/Contribute/BAO/ContributionRecur.php
with
11 additions
and
9 deletions
CRM/Contribute/BAO/ContributionRecur.php
+
11
−
9
View file @
851d7eed
...
...
@@ -183,7 +183,7 @@ SELECT r.payment_processor_id
$recurID
=
implode
(
','
,
$ids
);
$totalCount
=
array
();
$query
=
"
$query
=
"
SELECT contribution_recur_id, count( contribution_recur_id ) as commpleted
FROM civicrm_contribution
WHERE contribution_recur_id IN (
{
$recurID
}
) AND is_test = 0
...
...
@@ -368,8 +368,8 @@ SELECT r.payment_processor_id
static
function
getSubscriptionDetails
(
$entityID
,
$entity
=
'recur'
)
{
$sql
=
"
SELECT rec.id as recur_id,
rec.processor_id as subscription_id,
SELECT rec.id as recur_id,
rec.processor_id as subscription_id,
rec.frequency_interval,
rec.installments,
rec.frequency_unit,
...
...
@@ -377,14 +377,14 @@ SELECT rec.id as recur_id,
rec.is_test,
rec.auto_renew,
rec.currency,
con.id as contribution_id,
con.id as contribution_id,
con.contribution_page_id,
con.contact_id,
mp.membership_id"
;
if
(
$entity
==
'recur'
)
{
$sql
.
=
"
FROM civicrm_contribution_recur rec
FROM civicrm_contribution_recur rec
INNER JOIN civicrm_contribution con ON ( con.contribution_recur_id = rec.id )
LEFT JOIN civicrm_membership_payment mp ON ( mp.contribution_id = con.id )
WHERE rec.id = %1
...
...
@@ -393,14 +393,14 @@ LEFT JOIN civicrm_membership_payment mp ON ( mp.contribution_id = con.id )
elseif
(
$entity
==
'contribution'
)
{
$sql
.
=
"
FROM civicrm_contribution con
INNER JOIN civicrm_contribution_recur rec
INNER JOIN civicrm_contribution_recur rec
ON ( con.contribution_recur_id = rec.id )
LEFT JOIN civicrm_membership_payment mp ON ( mp.contribution_id = con.id )
WHERE con.id = %1"
;
}
elseif
(
$entity
==
'membership'
)
{
$sql
.
=
"
FROM civicrm_membership_payment mp
INNER JOIN civicrm_membership mem ON ( mp.membership_id = mem.id )
FROM civicrm_membership_payment mp
INNER JOIN civicrm_membership mem ON ( mp.membership_id = mem.id )
INNER JOIN civicrm_contribution_recur rec ON ( mem.contribution_recur_id = rec.id )
INNER JOIN civicrm_contribution con ON ( con.id = mp.contribution_id )
WHERE mp.membership_id = %1"
;
...
...
@@ -410,7 +410,9 @@ INNER JOIN civicrm_contribution con ON ( con.id = mp.contribution_id )
if
(
$dao
->
fetch
())
{
return
$dao
;
}
else
return
CRM_Core_DAO
::
$_nullObject
;
else
{
return
CRM_Core_DAO
::
$_nullObject
;
}
}
static
function
setSubscriptionContext
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment