X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pkg.cgi;h=3606a3d240e35c742b86536acce11af36c5f14ef;hb=9e5bf689d08f88ec6b49312c2c515f5a28bfdf11;hp=2b6db8c754ca80a36bc350471645660568aff5ce;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 2b6db8c75..3606a3d24 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -1,39 +1,35 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'html_init' => $html_init, - 'title' => 'Package Search Results', + 'title' => emt('Package Search Results'), 'name' => 'packages', 'query' => $sql_query, 'count_query' => $count_query, - #'redirect' => $link, - 'header' => [ '#', - 'Quan.', - 'Package', - 'Class', - 'Status', - 'Setup', - 'Base Recur', - 'Freq.', - 'Setup', - 'Last bill', - 'Next bill', - 'Adjourn', - 'Susp.', - 'Expire', - 'Contract end', - 'Cancel', - 'Reason', + 'header' => [ emt('#'), + emt('Quan.'), + emt('Package'), + emt('Class'), + emt('Status'), + emt('Setup'), + emt('Base Recur'), + emt('Freq.'), + emt('Setup'), + emt('Last bill'), + emt('Next bill'), + emt('Adjourn'), + emt('Susp.'), + emt('Expire'), + emt('Contract end'), + emt('Cancel'), + emt('Reason'), FS::UI::Web::cust_header( $cgi->param('cust_fields') ), - 'Services', + emt('Services'), ], 'fields' => [ 'pkgnum', 'quantity', - sub { #my $part_pkg = $part_pkg{shift->pkgpart}; - #$part_pkg->pkg; # ' - '. $part_pkg->comment; - $_[0]->pkg; # ' - '. $_[0]->comment; - }, + sub { $_[0]->pkg; }, 'classname', sub { ucfirst(shift->status); }, sub { sprintf( $money_char.'%.2f', @@ -45,20 +41,8 @@ $c->part_pkg->base_recur($c) ); }, - sub { #shift->part_pkg->freq_pretty; - - #my $part_pkg = $part_pkg{shift->pkgpart}; - #$part_pkg->freq_pretty; - - FS::part_pkg::freq_pretty(shift); - }, + sub { FS::part_pkg::freq_pretty(shift); }, - #sub { time2str('%b %d %Y', shift->setup); }, - #sub { time2str('%b %d %Y', shift->last_bill); }, - #sub { time2str('%b %d %Y', shift->bill); }, - #sub { time2str('%b %d %Y', shift->susp); }, - #sub { time2str('%b %d %Y', shift->expire); }, - #sub { time2str('%b %d %Y', shift->get('cancel')); }, ( map { time_or_blank($_) } qw( setup last_bill bill adjourn susp expire contract_end cancel ) ), @@ -73,13 +57,6 @@ }, \&FS::UI::Web::cust_fields, - #sub { '
'. $_->[0]. - # ': | '. $_->[1]. ' |