<%doc> Example: include( '/elements/tr-select-invoice.html', #opt - most get used in /elements/tr-amount-fee 'custnum' => 4, # customer number, 'prefix' => 'pre', # prefix to fields and row ID's ) <% mt('Open invoices') |h %> <%init> my %opt = @_; my @records = qsearch( { 'select' => '*', 'table' => 'cust_bill', 'hashref' => { 'custnum' => $opt{custnum} }, 'order_by' => 'ORDER BY _date', });