X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=b5d2d8b7962a642bdb6cd940f3a0cbc5ecaec3d3;hb=0d8c19f122f9f7331aa707192f3bffa473f069a5;hp=92138b5077757184f95d239f6468cc5fc38b3048;hpb=590603ecaea3184f64530755a76626be8205da49;p=freeside.git
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index 92138b507..b5d2d8b79 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -6,29 +6,91 @@
- Search options |
+
+ Search options
+ |
+
<% include( '/elements/tr-select-agent.html',
- $cgi->param('agentnum'),
+ 'curr_value' => scalar( $cgi->param('agentnum') ),
+ 'disable_empty' => 0,
)
%>
- <% include( '/elements/tr-select-cust_pkg-status.html' ) %>
- <% include( '/elements/tr-select-pkg_class.html', '',
+
+ <% include( '/elements/tr-select-cust_pkg-status.html',
+ 'onchange' => 'status_changed(this);',
+ )
+ %>
+
+
+
+ <% include( '/elements/tr-select-pkg_class.html',
'pre_options' => [ '0' => 'all' ],
'empty_label' => '(empty class)',
)
%>
- <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
-
- Next bill date |
-
-
- <% include( '/elements/tr-input-beginning_ending.html' ) %>
-
- |
-
+% foreach my $field (qw( setup last_bill bill adjourn susp expire cancel )) {
+
+
+ <% $label{$field} %> |
+
+
+ <% include( '/elements/tr-input-beginning_ending.html',
+ prefix => $field,
+ layout => 'horiz',
+ )
+ %>
+
+ |
+
+
+% }
+ <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
+
|
@@ -52,3 +114,37 @@ die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('List packages');
%init>
+<%once>
+
+my %label = (
+ 'setup' => 'Setup',
+ 'last_bill' => 'Last bill',
+ 'bill' => 'Next bill',
+ 'adjourn' => 'Adjourns',
+ 'susp' => 'Suspended',
+ 'expire' => 'Expires',
+ 'cancel' => 'Cancelled',
+);
+
+#false laziness w/cust_pkg.cgi
+my %disable = (
+ 'all' => {},
+ 'not yet billed' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, },
+ 'one-time charge' => { 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, },
+ 'active' => { 'susp'=>1, 'cancel'=>1 },
+ 'suspended' => { 'cancel' => 1 },
+ 'cancelled' => {},
+ '' => {},
+);
+
+#hmm?
+my %checkbox = (
+ 'setup' => 0,
+ 'last_bill' => 0,
+ 'bill' => 0,
+ 'susp' => 1,
+ 'expire' => 1,
+ 'cancel' => 1,
+);
+
+%once>