From 8bd2ad71aef6e393425ddf8f959f02e69aec4a61 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 15 Mar 2008 19:53:00 +0000 Subject: check on invoice re-printing newest percust... can't reproduce any problem, prints newest per cust fine, closes: #3161 --- httemplate/search/cust_bill.html | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 4f0585d0c..25a7ea051 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -159,7 +159,8 @@ if ( $cgi->param('invnum') =~ /^\s*(FS-)?(\d+)\s*$/ ) { FS::cust_bill->owed_sql. ' AS owed', FS::cust_bill->net_sql. ' AS net', ), - 'extra_sql' => "$extra_sql $orderby" + 'extra_sql' => $extra_sql, + 'order_by' => $orderby, }; } @@ -187,17 +188,40 @@ my $html_init = join("\n", map { qq!
!, ( map qq!!, keys %search ), qq!
! -} qw( print_ email_ fax_ ) ); +} qw( print_ email_ fax_ ) ). + +''; my $menubar = [ 'Print these invoices' => - "javascript:print_process()", + "javascript:confirm_print_process()", 'Email these invoices' => - "javascript:email_process()", + "javascript:confirm_email_process()", ]; push @$menubar, 'Fax these invoices' => - "javascript:fax_process()" + "javascript:confirm_fax_process()" if $conf->exists('hylafax'); -- cgit v1.2.1