X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=981c54607677b9c760f60058f81defaeb7af6279;hb=6b5dda03831aef0cb5689cf2acf3fac47e4b12cb;hp=e75a0985be612d4b5dafe419da2bcdecd88daf46;hpb=7427b3722522f049c9ebdb4ba3780a91b88c414f;p=freeside.git diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index e75a0985b..981c54607 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -6,9 +6,8 @@ % unless ( $custnum ) { - - - <& /elements/tr-title.html, value => mt('Customer search options') &> + <% emt('Customer search options') %> +
<& /elements/tr-select-agent.html, 'curr_value' => scalar( $cgi->param('agentnum') ), @@ -50,9 +49,8 @@ % } -
- - <& /elements/tr-title.html, value => mt('Package search options') &> +<% emt('Package search options') %> +
<& /elements/tr-select-sales.html, 'label' => 'Package sales person', @@ -67,10 +65,29 @@ 'onchange' => 'status_changed(this);', &> + <& /elements/tr-select-reason.html, + 'field' => 'reasonnum', + 'reason_class' => 'S', + 'label' => 'Suspended Reason', + 'label_id' => 'reasonnum_label', + 'hide_addnew' => '1', + 'hide_onload' => '1', + 'cgi' => $cgi, + 'control_button' => 'confirm_suspend_cust_button', + 'pre_options' => [ 0 => 'all' ], + &> + <& /elements/tr-select-pkg_class.html, @@ -135,6 +190,7 @@ + % my $noinit = 0; % foreach my $field (@date_fields) { @@ -152,6 +208,13 @@ % $noinit = 1; % } + % } #foreach $field
From date (m/d/y) To date (m/d/y)Empty date
+ <& /elements/checkbox.html, + 'field' => $field.'_null', + 'value' => 'Y', + 'onchange' => $field.'_null_changed', + &> +
@@ -187,10 +250,14 @@ <& /elements/tr-selectmultiple-part_pkg.html &> - <& /elements/tr-title.html, value => mt('Location search options') &> + +
+ +<% emt('Location search options') %> + % my @location_options = qw(cust nocust census nocensus); -% if ( $conf->exists('enable_taxproducts') ) { +% if ( $conf->config('tax_data_vendor') eq 'cch' ) { % push @location_options, 'geocode', 'nogeocode'; % } <& /elements/tr-checkbox-multiple.html, @@ -204,10 +271,14 @@ 'nogeocode'=> 'has an implicit tax location', 'geocode' => 'has a hardcoded tax location', }, - 'value' => { map { $_ => 1 } @location_options }, + 'value' => { map { $_ => 0 } @location_options }, &> - <& /elements/tr-title.html, value => mt('Display options') &> +
+
+ +<% emt('Display options') %> + <& /elements/tr-select-cust-fields.html &> @@ -260,7 +331,8 @@ my @date_fields = keys %label; #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, }, + 'on hold' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'expire'=>1, 'cancel'=>1, 'dundate'=> 1, }, + 'not yet billed' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, 'dundate'=>1, }, 'one-time charge' => { 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, 'contract_end'=>1, 'dundate'=>1, }, 'active' => { 'susp'=>1, 'cancel'=>1 }, 'suspended' => { 'cancel'=>1, 'dundate'=>1, },