projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r6255,
[freeside.git]
/
httemplate
/
search
/
cust_svc.html
diff --git
a/httemplate/search/cust_svc.html
b/httemplate/search/cust_svc.html
index
1ab5ed1
..
3beca4d
100644
(file)
--- a/
httemplate/search/cust_svc.html
+++ b/
httemplate/search/cust_svc.html
@@
-21,14
+21,28
@@
'links' => [ $link,
$link,
# package?
'links' => [ $link,
$link,
# package?
- ( map { $
link_cust
}
+ ( map { $
_ ne 'Cust. Status' ? $link_cust : ''
}
FS::UI::Web::cust_header()
),
],
FS::UI::Web::cust_header()
),
],
+ 'align' => 'rl'. FS::UI::Web::cust_aligns(),
+ 'color' => [
+ '',
+ '',
+ FS::UI::Web::cust_colors(),
+ ],
+ 'style' => [
+ '',
+ '',
+ FS::UI::Web::cust_styles(),
+ ],
)
%>
<%init>
)
%>
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('List services');
+
my $addl_from = ' LEFT JOIN part_svc USING ( svcpart ) '.
' LEFT JOIN cust_pkg USING ( pkgnum ) '.
' LEFT JOIN cust_main USING ( custnum ) ';
my $addl_from = ' LEFT JOIN part_svc USING ( svcpart ) '.
' LEFT JOIN cust_pkg USING ( pkgnum ) '.
' LEFT JOIN cust_main USING ( custnum ) ';
@@
-39,6
+53,7
@@
my $orderby = 'ORDER BY svcnum'; #has to be ordered by something
if ( length( $cgi->param('search_svc') ) ) {
my $string = $cgi->param('search_svc');
if ( length( $cgi->param('search_svc') ) ) {
my $string = $cgi->param('search_svc');
+ $string =~ s/(^\s+|\s+$)//; #trim leading & trailing whitespace
# implement fuzzy searching in subclasses too at some point?
# service searching maybe shouldn't be fuzzy...
# implement fuzzy searching in subclasses too at some point?
# service searching maybe shouldn't be fuzzy...
@@
-75,7
+90,7
@@
if ( length( $cgi->param('search_svc') ) ) {
push @extra_sql, "svcpart = $1";
} else {
push @extra_sql, "svcpart = $1";
} else {
- e
idiot
("No search term specified");
+ e
rrorpage
("No search term specified");
}
#here is the agent virtualization
}
#here is the agent virtualization
@@
-100,7
+115,7
@@
my $count_query = "SELECT COUNT(*) FROM cust_svc $addl_from $extra_sql";
my $link = sub {
my $cust_svc = shift;
my $link = sub {
my $cust_svc = shift;
- my $url =
FS::UI::Web::
svc_url(
+ my $url = svc_url(
'm' => $m,
'action' => 'view',
#'part_svc' => $cust_svc->part_svc,
'm' => $m,
'action' => 'view',
#'part_svc' => $cust_svc->part_svc,