Should show up for members that don't have an invoice.
FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "invoice_types
WHERE dynamic_amount = true
) ";
+ // echo '<pre>$wParts: ' . print_r( $wParts, true ) . '</pre>';
if ( $option2 ) {
// $where used in all places.
$where = implode( ' AND ', $wParts );
+ // echo '<pre>$where: ' . print_r( $where, true ) . '</pre>';
$accounts = $Accounts->getSimpleAccountList( $where );
foreach ( $accounts as $account ) {
WHERE account = %d
AND due_date BETWEEN %s and %s",
$account_id,
- date( 'Y-m-d' , $currentInvoiceDate ),
+ date( 'Y-m-d', $currentInvoiceDate ),
date( 'Y-m-d', $nextInvoiceDate )
)
);
<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 && $accountID && !$fromMemberMenu}
+ {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}
<td class="glm-shrink">${$transaction.transaction_data.amount_total}</td>
<td class="glm-shrink">${$transaction.transaction_data.balance}</td>
<td class="glm-shrink">
- {if isset( $billing_settings.uptravel_payment_form ) && $billing_settings.uptravel_payment_form && !$fromMemberMenu}
+ {if isset( $billing_settings.uptravel_payment_form ) && $billing_settings.uptravel_payment_form}
{if $transaction.transaction_data.paid} {else}<a href="{$thisUrl}?page={$thisPage}&glm_action=billing&option=makepaymentadjustment&member={$memberID}">Make A Payment</a>{/if}
{else}
{if $transaction.transaction_data.paid} {else}<a href="{$thisUrl}?page={$thisPage}&glm_action=billing&option=makepayment&member={$memberID}">Pay Invoice</a>{/if}