RT# 34134 - added open invoices selection when selecting pay specific invoice
authorChristopher Burger <burgerc@freeside.biz>
Wed, 3 Jan 2018 00:52:46 +0000 (19:52 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Wed, 3 Jan 2018 00:52:46 +0000 (19:52 -0500)
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>