Extend api action 'calc' of 'membership_status' with custom date
At this moment civicrm_api3_membership_status_calc
only accepts the parameter membership_id
. The function CRM_Member_BAO_MembershipStatus::getMembershipStatusByDate
used for calculation gets 'today' as hardcoded param.
Patch attached extends this call with an optional status_date.