-<& /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')
&>
% $br++;
% }
+% if ( $cust_bill->taxengine_request ) { # inefficient
+<% $br ? '|' : '' %>
+<& /elements/popup_link.html,
+ 'action' => 'cust_bill-taxengine_request.html?invnum=' . $cust_bill->invnum,
+ 'label' => mt('View raw tax engine request'),
+ 'actionlabel' => mt('Tax engine request'),
+ 'width' => 1050,
+ 'height' => 600,
+ 'title' => emt('Tax engine request'),
+&>
+% $br++;
+% }
<BR><BR>
<PRE><% join('', $cust_bill->print_text(\%opt) ) |h %></PRE>
% }
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;