From 4879d6626e33e0df7d1655cc4ee4ddaff4279218 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 15 Mar 2008 19:52:58 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 9166f6dcb..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, }; } -- cgit v1.2.1