$account = $this->getAccountByRefDest( $member_id );
// New Billing Data If using Billing Fields
- // echo '<pre>$billing_updated: ' . print_r( $billing_updated, true ) . '</pre>';
// Check for required fields
foreach ( $billing_updated as $field_name => $field_value ) {
$key = array_search( $field_name, $required_fields );
$billing_updated['ref_name'] = $member_name; // Use members name
$billing_updated['ref_dest'] = $member_id;
$billing_updated['anniversary_date'] = date('Y-m-d H:i:s');
- $billing_updated['invoice_type'] = $invoice_type;
+ $billing_updated['invoice_type'] = ( $invoice_type ) ? $invoice_type : 0;
$billing_updated_format[] = '%s';
$billing_updated_format[] = '%d';
$billing_updated_format[] = '%s';
return $errors;
}
}
- // echo '<pre>$errors: ' . print_r( $errors, true ) . '</pre>';
return true;
}
* Plugin Name: GLM Members Billing
* Plugin URI: http://www.gaslightmedia.com/
* Description: This is glmAssociate Billing Module
- * Version: 1.0.33
+ * Version: 1.0.34
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersBillingAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.33
+ * @version 1.0.34
*/
/*
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.33');
+define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.34');
// Database Version
define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26');