{assign var=title value="Payments"} {include file="admin/header.inc.html"}

{$title}

Search by date
From: {html_select_date time=$beg_date prefix=beg_date start_year=-2 all_extra="onclick=\"sw1(this.form, 'date')\" onfocus=\"sw1(this.form, 'date')\""} To: {html_select_date time=$end_date prefix=end_date start_year=-2 all_extra="onclick=\"sw1(this.form, 'date')\" onfocus=\"sw1(this.form, 'date')\""}
Search by string
Search
Display completed payments only            List payments by

{span}

{if $config.use_tax}{/if} {counter name=count start=-1 skip=1 print=false} {counter name=coupons_count start=-1 skip=1 print=false} {assign var=amount value=0} {assign var=tax_amount value=0} {assign var=coupons_amount value=0} {foreach from=$list item=p} {if $config.use_tax}{/if} {math equation="a+y" a=$amount y=$p.amount assign=amount} {math equation="a+y" a=$tax_amount y=$p.tax_amount assign=tax_amount} {if $p.coupon_id > 0}{math equation="a+y" a=$coupons_amount y=$p.amount assign=coupons_amount}{/if} {counter name=count print=false} {if $p.coupon_id > 0}{counter name=coupons_count print=false}{/if} {foreachelse} {/foreach} {if $config.use_tax}{/if} {if $config.use_tax}{/if} {if $all_count > 20 } {if $config.use_tax}{/if} {/if}
# {$list_by_title} Member Product Period Payment System Receipt # AmountTax amountPaid Status  
{$p.payment_id}  {$p.$list_by_field|date_format:$config.time_format} {$p.member_login|escape} {$p.product_title|escape} {$p.begin_date|amember_date_format} - {$p.expire_date|amember_date_format} {$p.paysys_id}  {$p.receipt_id}  {$p.amount} {$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}
Edit Del

No payments found. Try to select different criteria.

{counter name=count skip=0} displayed TOTAL {$amount|string_format:"%.2f"} {$tax_amount|string_format:"%.2f"}      
{counter name=coupons_count skip=0} displayed COUPONS TOTAL {$coupons_amount|string_format:"%.2f"}       
{$all_count} records found GRAND TOTAL {$all_amount|string_format:"%.2f"} {$all_tax_amount|string_format:"%.2f"}      

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