UI nit: self_url ends up pointing to Change History
[freeside.git] / httemplate / search / unapplied_cust_pay.html
1 <& elements/cust_main_dayranges.html,
2                  #'title'       => 'Prepaid Balance Aging Summary', #???
3                  'title'       => 'Unapplied Payments Aging Summary',
4                  'range_sub'   => \&unapplied_payments,
5 &>
6 <%init>
7
8 die "access denied"
9   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
10
11 </%init>
12 <%once>
13
14 sub unapplied_payments {
15   my($start, $end, $cutoff) = @_;
16
17   FS::cust_main->unapplied_payments_date_sql( $start, $end, 
18           'cutoff' => $cutoff,
19   );
20 }
21
22 </%once>