{assign var=title value="User Payments/Subscriptions"} {include file="admin/header.inc.html"} {include file="admin/user_nb.inc.html" selected="payments"} {if $config.use_tax} {include file="admin/recalculate_tax.js"} {/if} {include file="admin/recalculate_amount.js"}

{$title}

{if $config.use_tax} {/if} {foreach from=$payments item=p} {if $config.use_tax}{/if} {/foreach} {if $config.use_tax}{/if}
Product Period Payment System Receipt # Amount, {$config.currency|default:"$"}Tax amountPaid Status  
{if (not $p.completed)} {if ($p.items_count > 1)} {$config.multi_title} ({$p.items_count} items) {else} {lookup arr=$products key=$p.product_id} {/if} {else} {* completed *} {if ($p.items_count > 1)} {lookup arr=$products key=$p.product_id} {else} {lookup arr=$products key=$p.product_id} {/if} {/if} {$p.begin_date|amember_date_format} - {$p.expire_date|amember_date_format:$config.date_format} {lookup arr=$paysystems key=$p.paysys_id} {$p.receipt_id} {$config.currency|default:"$"}{$p.amount}{$config.currency|default:"$"}{$p.tax_amount}{if $p.completed}YES{else}NO{/if} {if $p.completed} {if $p.expire_date >= date('Y-m-d') and $p.begin_date <= date('Y-m-d') } Active {elseif $p.expire_date < date('Y-m-d') } Expired {elseif $p.begin_date > date('Y-m-d') } Future {/if} {else} Not-Paid {/if} {if $p.data.CANCELLED}
CANCELLED{/if} {if $p.restart_url}
ReStart Recurring{/if} {if $p.cancel_url && $p.completed}
Stop Recurring{/if}
Edit Del

ADD NEW PAYMENT/SUBSCRIPTION
{html_select_date all_extra="class=small onChange='recalculateExpire();'" day_extra="id='begin_day'" month_extra="id='begin_month'" year_extra="id='begin_year'" prefix="begin_date" time=$p.begin_date start_year="-10" end_year="2037" time=""} - {html_select_date all_extra="class=small" day_extra="id='expire_day'" month_extra="id='expire_month'" year_extra="id='expire_year'" prefix="expire_date" time=$p.exipre_date start_year="-10" end_year="2037" time=""} {if $config.use_tax}  incl. tax{/if}

{include file="admin/footer.inc.html"}