Commit aa1cd141 authored by Jamie McClelland's avatar Jamie McClelland Committed by mattwire

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
......@@ -115,7 +115,7 @@ function civicrm_api3_stripe_customer_updatecontactids($params) {
$sql = "SELECT
FROM civicrm_contribution_recur rc
JOIN civicrm_stripe_subscriptions sc ON
( = sc.contribution_recur_id OR rc.invoice_id = sc.invoice_id) = sc.contribution_recur_id
JOIN civicrm_contact c ON = rc.contact_id
WHERE c.is_deleted = 0 AND customer_id = %0
ORDER BY start_date DESC LIMIT 1";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment