{assign var=title value="Coupons payments"} {include file="admin/header.inc.html"} {include file="admin/coupon_nb.inc.html" selected="payments"}

{$title|escape}

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 coupon code
Search
List payments by

{span}

{counter name=count start=-1 skip=1 print=false} {assign var=amount value=0} {foreach from=$list item=p} {math equation="a+y" a=$amount y=$p.amount assign=amount} {counter name=count print=false} {foreachelse} {/foreach} {if $all_count > 20 } {/if}
# {$list_by_title} Member Product Period Discount Coupon code / Batch # Amount Paid
{$p.payment_id|escape}  {$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.discount|escape}  {$p.code} / {$p.batch_id}  {$p.amount}  {if $p.completed}YES{else}NO{/if}

No payments found. Try to select different criteria.

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

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