X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_forward.cgi;h=75c8f5c2572195073e612b0abbf252c85b236089;hp=ff84a282fb2d0f61cd33f0d289e2fa11d60b8901;hb=877a4eb85cb847bd314d6a9192fedb1dc35c5d02;hpb=ff873782e78715891b9d5d2eb5b38c735d372556 diff --git a/httemplate/view/svc_forward.cgi b/httemplate/view/svc_forward.cgi index ff84a282f..75c8f5c25 100755 --- a/httemplate/view/svc_forward.cgi +++ b/httemplate/view/svc_forward.cgi @@ -1,12 +1,26 @@ -<% include('/elements/header.html', 'Mail Forward View', menubar( - ( ( $pkgnum || $custnum ) - ? ( "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum", - ) - : ( "Cancel this (unaudited) mail forward" => - "${p}misc/cancel-unaudited.cgi?$svcnum" ) - ) -)) -%> +% if ( $custnum ) { + + <% include("/elements/header.html","View mail forward") %> + <% include( '/elements/small_custview.html', $custnum, '', 1, + "${p}view/cust_main.cgi") %> +
+ +% } else { + + <% include("/elements/header.html",'View mail forward', menubar( + "Cancel this (unaudited) mail forward" => + "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum')", + )) + %> + + + +% } Edit this information @@ -36,6 +50,11 @@
+ +<% include('elements/svc_export_settings.html', $svc_forward) %> + +<& /elements/table-tickets.html, object => $cust_svc &> + <% joblisting({'svcnum'=>$svcnum}, 1) %> <% include('/elements/footer.html') %> @@ -56,7 +75,9 @@ my $svc_forward = qsearchs({ ' LEFT JOIN cust_pkg USING ( pkgnum ) '. ' LEFT JOIN cust_main USING ( custnum ) ', 'hashref' => {'svcnum'=>$svcnum}, - 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, + 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql( + 'null_right' => 'View/link unlinked services' + ), }); die "Unknown svcnum" unless $svc_forward;