When creating a new billing account goto the create invoice screen.
// kill this abide form
$('#billingInfoForm').foundation('_destroy');
if ( haveAccount === false ) {
- // reload the page
- var billingAccountPageUrl = '{$adminUrl}?page=glm-members-admin-menu-billing&glm_action=accounts';
+ // If new account goto the Create Invoice Page.
+ var billingAccountPageUrl = '{$adminUrl}?page=glm-members-admin-menu-billing&glm_action=invoices&option=add';
window.location.href = billingAccountPageUrl;
- //console.log('billingAccountPageUrl: ', billingAccountPageUrl);
}
} else {
return false;