X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_bill.cgi;h=5b0538ca3bdb06dd945082efdc1aaa2049a554f7;hp=d1b054dcd00b16332a0698fd5b2fbf2cdc4070ab;hb=6e0b2d0a94827df55364a45fe1d1ba8928c5d659;hpb=91c1b8e16502b31bf824a010a4e2ad1dcf247ec4 diff --git a/httemplate/search/cust_bill.cgi b/httemplate/search/cust_bill.cgi index d1b054dcd..5b0538ca3 100755 --- a/httemplate/search/cust_bill.cgi +++ b/httemplate/search/cust_bill.cgi @@ -11,7 +11,7 @@ $limit .= "LIMIT $maxrecords" if $maxrecords; my $offset = $cgi->param('offset') || 0; $limit .= " OFFSET $offset" if $offset; -my $total; +my($total, $tot_amount, $tot_balance); my(@cust_bill); if ( $cgi->keywords ) { @@ -125,10 +125,10 @@ END my $view = popurl(2). "view/cust_bill.cgi?$invnum"; print < - $invnum - \$$owed - \$$charged - $pdate + $invnum + \$$owed + \$$charged + $pdate END my $custnum = $cust_bill->custnum; my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); @@ -139,8 +139,8 @@ END $cust_main->company, ); print <$name - $company + $name + $company END } else { print <$pager
". table(). <       Total
Balance
Total
Amount
- \$$tot_balance\$$tot_amount +        Total
BalanceTotal
Amount + \$$tot_balance\$$tot_amount @@ -162,17 +162,4 @@ END } -# - -sub invnum_sort { - $a->invnum <=> $b->invnum; -} - -sub custnum_sort { - $a->custnum <=> $b->custnum || $a->invnum <=> $b->invnum; -} - -sub date_sort { - $a->_date <=> $b->_date || $a->invnum <=> $b->invnum; -} %>