*
* @return
*/
- function statusAvilability($contactId) {
+ static function statusAvailabilty($contactId) {
$membership = new CRM_Member_DAO_MembershipStatus();
$membership->whereAdd('is_active=1');
$count = $membership->count();
if ($this->_action & CRM_Core_Action::ADD) {
//check whether any active membership statuses are available - redirects back to contact summary if not
- CRM_Member_BAO_Membership::statusAvilability($this->_contactID);
+ CRM_Member_BAO_Membership::statusAvailabilty($this->_contactID);
if ($this->_contactID) {
//check whether contact has a current membership so we can alert user that they may want to do a renewal instead
if ($priceSetId && !$self->_mode && !CRM_Utils_Array::value('record_contribution', $params)) {
$errors['record_contribution'] = ts('Record Membership Payment is required when you using price set.');
}
-
+
if (!$priceSetId && $self->_mode && !CRM_Utils_Array::value('financial_type_id', $params)) {
$errors['financial_type_id'] = ts('Please enter the financial Type.');
}
else {
$params['total_amount'] = CRM_Utils_Array::value('total_amount', $formValues, 0);
}
-
+
if ($priceSetId && !$isQuickConfig) {
$params['financial_type_id'] = CRM_Core_DAO::getFieldValue( 'CRM_Price_DAO_Set',
$priceSetId,