X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_bill.cgi;h=d83851804eaa49fa4994a6b9fe20d00fe67f1013;hp=755745fde2ddf890a22c7769637ec75ff0afaed9;hb=a4c96748eb6eab29a70f3a944c6520283a635c78;hpb=1fd6d8cf5d7854860ef4fd10ed89828e0c04ec39 diff --git a/httemplate/search/cust_bill.cgi b/httemplate/search/cust_bill.cgi index 755745fde..d83851804 100755 --- a/httemplate/search/cust_bill.cgi +++ b/httemplate/search/cust_bill.cgi @@ -1,4 +1,3 @@ - <% my(@cust_bill, $sortby); @@ -51,8 +50,14 @@ if ( scalar(@cust_bill) == 1 ) { my $invnum = $cust_bill[0]->invnum; print $cgi->redirect(popurl(2). "view/cust_bill.cgi?$invnum"); #redirect } elsif ( scalar(@cust_bill) == 0 ) { +%> + +<% eidiot("Invoice not found."); } else { +%> + +<% my $total = scalar(@cust_bill); print header("Invoice Search Results", menubar( 'Main Menu', popurl(2)