Skip to content
Snippets Groups Projects
Commit aa1cd141 authored by Jamie McClelland's avatar Jamie McClelland Committed by mattwire
Browse files

invoice_id cannot be counted on

It is not installed on new installations and should probably
be dropped in a future version (perhaps when we drop the email
column from civicrm_stripe_customers)
parent 58c6aa0b
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ function civicrm_api3_stripe_customer_updatecontactids($params) { ...@@ -115,7 +115,7 @@ function civicrm_api3_stripe_customer_updatecontactids($params) {
$sql = "SELECT c.id $sql = "SELECT c.id
FROM civicrm_contribution_recur rc FROM civicrm_contribution_recur rc
JOIN civicrm_stripe_subscriptions sc ON JOIN civicrm_stripe_subscriptions sc ON
( rc.id = sc.contribution_recur_id OR rc.invoice_id = sc.invoice_id) rc.id = sc.contribution_recur_id
JOIN civicrm_contact c ON c.id = rc.contact_id JOIN civicrm_contact c ON c.id = rc.contact_id
WHERE c.is_deleted = 0 AND customer_id = %0 WHERE c.is_deleted = 0 AND customer_id = %0
ORDER BY start_date DESC LIMIT 1"; ORDER BY start_date DESC LIMIT 1";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment