JacksonRiver/springboard_modules — pull request #638 by epicflux (2014-11-03 20:35:17+00:00)
Title: Fixes for donation syncing and sustainer updates when series canceled

Issue:
When canceling a series previously failed donations will sync to SF as canceled.

Fixes:
Removed the function _fundraiser_sustainers_cancel_recurring_by_master which was setting all non-processed and failed donations for a series to canceled.

Moved the process of canceling an individual sustainer record to a fundraiser sustainers implementation of hook_fundraiser_donation_cancel().

The query in the function _fundraiser_sustainers_get_donations_recurr_remaining() has been adjusted to pull failed donations that haven't had three attempts.

Additionally:
Added the 'canceled' status to fundraiser_commerce_commerce_order_status_info() so canceled donations can sync correctly to salesforce.

Implemented hook_fundraiser_donation_delete in the salesforce donation module so deleted donations are synced to SF as well. Without this donations deleted during sustainer billing updates (when the cc exp date is less into the future than current exp date) are not synced to SF.