diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-08-08 19:35:34 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-08-10 06:38:44 -0400 |
| commit | bcbc2580692528ee67b85f3d33f267a59ee530c8 (patch) | |
| tree | 9cdfa8ac2aada8ac740eb3327e61792d8d0db65b /httemplate/elements/tr-select-invoice.html | |
| parent | 9dfb97b6fb41274ac7990f092365657cb98fa007 (diff) | |
RT# 34134 - updated select invoice to actually pay the invoice being selected not the oldest one.
Diffstat (limited to 'httemplate/elements/tr-select-invoice.html')
| -rw-r--r-- | httemplate/elements/tr-select-invoice.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/elements/tr-select-invoice.html b/httemplate/elements/tr-select-invoice.html index 434042c9b..d35813fc5 100644 --- a/httemplate/elements/tr-select-invoice.html +++ b/httemplate/elements/tr-select-invoice.html @@ -26,10 +26,14 @@ Example: <OPTION VALUE="select">Select an invoice to pay</OPTION> % foreach my $record (@invoices) { % my $read_date = time2str("%b %o, %Y", $record->_date); - <OPTION VALUE="<% $record->charged %>"><% $record->invnum %> (<% $read_date %>) - <% $record->charged %></OPTION> +% $hidden .= '<INPUT TYPE="hidden" ID="inv'.$record->invnum.'" NAME="inv'.$record->invnum.'" VALUE="'.$record->owed.'">'; + <OPTION VALUE="<% $record->invnum %>"><% $record->invnum %> (<% $read_date %>) - <% $record->owed %></OPTION> % } - </SELECT> + </SELECT> + + <% $hidden %> + </TD> </TR> @@ -37,6 +41,7 @@ Example: my %opt = @_; my $status = $opt{'status'} ? $opt{'status'} : 'all'; +my $hidden; my @invoices; if ($status eq "all") { @invoices = $opt{'cust_main'}->cust_bill; } |
