-<& /elements/header.html, mt('Invoice View'), menubar(
- emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
-) &>
+<& /elements/header-cust_main.html, view=>'payment_history', custnum=>$custnum &>
-<SCRIPT TYPE="text/javascript">
-function areyousure(href, message) {
- if (confirm(message) == true)
- window.location.href = href;
-}
-</SCRIPT>
+<h2>Invoice #<% $invnum %></h2>
% if ( !$cust_bill->closed ) { # otherwise allow no changes
% my $can_delete = $conf->exists('deleteinvoices')
<PRE><% join('', $cust_bill->print_text(\%opt) ) |h %></PRE>
% }
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
# the menu head: always a link back to this page
$cgi->param('show', $entry->{show});
- $target = $cgi->self_url;
+
+ #$target = $cgi->self_url;
+ #XXX support installs outside /freeside in 4.x
+ $target = "/freeside/view/cust_main.cgi?show=$show;custnum=". $cust_main->custnum;
+
$cgi->param('show', $show);
my $a = qq[ <A HREF="$target"];