projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 34134 - added documentation for new feature
[freeside.git]
/
httemplate
/
elements
/
tr-select-invoice.html
diff --git
a/httemplate/elements/tr-select-invoice.html
b/httemplate/elements/tr-select-invoice.html
index
03625b6
..
3728d34
100644
(file)
--- a/
httemplate/elements/tr-select-invoice.html
+++ b/
httemplate/elements/tr-select-invoice.html
@@
-1,3
+1,15
@@
+<%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
+ )
+
+</%doc>
<TR ID="invoice_row" STYLE="display:none;">
<TH ALIGN="right"><% mt('Open invoices') |h %></TH>
<TR ID="invoice_row" STYLE="display:none;">
<TH ALIGN="right"><% mt('Open invoices') |h %></TH>
@@
-6,7
+18,6
@@
ID = "<% $opt{prefix} %>invoice"
NAME = "<% $opt{prefix} %>invoice"
onChange = "<% $opt{prefix} %>invoice_select_changed(this)"
ID = "<% $opt{prefix} %>invoice"
NAME = "<% $opt{prefix} %>invoice"
onChange = "<% $opt{prefix} %>invoice_select_changed(this)"
- <% $opt{disabled} %>
>
<OPTION VALUE="select">Select an invoice to pay</OPTION>
% foreach my $record (@records) {
>
<OPTION VALUE="select">Select an invoice to pay</OPTION>
% foreach my $record (@records) {
@@
-22,4
+33,11
@@
my %opt = @_;
my %opt = @_;
+my @records = qsearch( {
+ 'select' => '*',
+ 'table' => 'cust_bill',
+ 'hashref' => { 'custnum' => $opt{custnum} },
+ 'order_by' => 'ORDER BY _date',
+});
+
</%init>
</%init>