summaryrefslogtreecommitdiff
path: root/httemplate/search/unapplied_cust_pay.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/unapplied_cust_pay.html')
-rwxr-xr-xhttemplate/search/unapplied_cust_pay.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/httemplate/search/unapplied_cust_pay.html b/httemplate/search/unapplied_cust_pay.html
new file mode 100755
index 0000000..e232291
--- /dev/null
+++ b/httemplate/search/unapplied_cust_pay.html
@@ -0,0 +1,23 @@
+<% include( 'elements/cust_main_dayranges.html',
+ #'title' => 'Prepaid Balance Aging Summary', #???
+ 'title' => 'Unapplied Payments Aging Summary',
+ 'range_sub' => \&unapplied_payments,
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+</%init>
+<%once>
+
+sub unapplied_payments {
+ my($start, $end, $cutoff) = @_;
+
+ FS::cust_main->unapplied_payments_date_sql( $start, $end,
+ 'cutoff' => $cutoff,
+ );
+}
+
+</%once>