2 <TR ID="invoice_row" STYLE="display:none;">
3 <TH ALIGN="right"><% mt('Open invoices') |h %></TH>
6 ID = "<% $opt{prefix} %>invoice"
7 NAME = "<% $opt{prefix} %>invoice"
8 onChange = "<% $opt{prefix} %>invoice_select_changed(this)"
11 <OPTION VALUE="select">Select an invoice to pay</OPTION>
12 % foreach my $record (@records) {
13 % my $read_date = time2str("%b %o, %Y", $record->_date);
14 <OPTION VALUE="<% $record->charged %>"><% $record->invnum %> (<% $read_date %>) - <% $record->charged %></OPTION>
25 my @records = qsearch( {
27 'table' => 'cust_bill',
28 'hashref' => { 'custnum' => $opt{custnum} },
29 'order_by' => 'ORDER BY _date',