RT# 34134 - added open invoices selection when selecting pay specific invoice
[freeside.git] / httemplate / elements / tr-select-invoice.html
index 03625b6..70923b6 100644 (file)
 
 my %opt = @_;
 
+my @records = qsearch( {
+    'select'    => '*',
+    'table'     => 'cust_bill',
+    'hashref'   => { 'custnum' => $opt{custnum} },
+    'order_by'  => 'ORDER BY _date',
+});
+
 </%init>