Update to hide create invoice when no account exists
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Feb 2019 20:47:24 +0000 (15:47 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Feb 2019 20:47:24 +0000 (15:47 -0500)
Cannot do that unless there's an account.

views/admin/billing/memberBillingSubHeader.html

index 6545521..6b1ae01 100644 (file)
@@ -27,7 +27,7 @@
                     <a href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=billing&member={$memberID}&option=renew" class="">Membership Renewal</a>
                 </li>
             {/if}
-            {if isset( $billing_settings.uptravel_payment_form ) && $billing_settings.uptravel_payment_form}
+            {if isset( $billing_settings.uptravel_payment_form ) && $billing_settings.uptravel_payment_form && $accountID}
                 {$hasInvoice = apply_filters('glm-billing-account-has-invoice', false, $accountID )}
                 <li>
                     {if $hasInvoice}