X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Finventory_item.html;h=d8277341519b10ede05f628c7b8ef3deb0e89b7f;hb=409cd8958c687ac468b4d4fbe84fefb8f1e2feec;hp=37914e0a7488a58720cd34d8211489ccb8183755;hpb=42ed7ef03700fb17467bfeedead3639da9efc4a4;p=freeside.git diff --git a/httemplate/search/inventory_item.html b/httemplate/search/inventory_item.html index 37914e0a7..d82773415 100644 --- a/httemplate/search/inventory_item.html +++ b/httemplate/search/inventory_item.html @@ -1,4 +1,4 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => $title, 'menubar' => [ 'View inventory classes' => @@ -34,6 +34,7 @@ $inventory_class->classname, 'Service', FS::UI::Web::cust_header(), + '', # checkbox column ], 'fields' => [ @@ -56,6 +57,7 @@ }, \&FS::UI::Web::cust_fields, + $sub_checkbox, ], 'align' => 'rll'.FS::UI::Web::cust_aligns(), @@ -79,9 +81,10 @@ '', FS::UI::Web::cust_styles(), ], - - ) -%> + 'html_init' => $html_form, + 'html_foot' => $html_foot, + +&> <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -150,6 +153,40 @@ my $link_cust = sub { my $addl_from = ' LEFT JOIN cust_svc USING ( svcnum ) '. ' LEFT JOIN part_svc USING ( svcpart ) '. ' LEFT JOIN cust_pkg USING ( pkgnum ) '. - ' LEFT JOIN cust_main USING ( custnum ) '; + FS::UI::Web::join_cust_main('cust_pkg', 'cust_pkg'); + +my $sub_checkbox = sub { + my $item = $_[0]; + my $itemnum = $item->itemnum; + return '' if $item->svcnum; + + return qq!!; +}; + +my $html_form = qq! +
'; %init>