[freeside-commits] freeside/httemplate/elements select-terms.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Fri Oct 9 16:59:26 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv18717/httemplate/elements
Added Files:
select-terms.html
Log Message:
change invoice terms for one-time charges (& bill them immediately), RT#5891
--- NEW FILE: select-terms.html ---
<SELECT NAME = "invoice_terms"
ID = "invoice_terms"
<% $opt{'disabled'} ? 'DISABLED' : ''%>
>
<OPTION VALUE=""><% $empty_label %>
% foreach my $term ( @terms ) {
<OPTION VALUE="<% $term %>" <% $curr_value eq $term ? ' SELECTED' : '' %>><% $term %>
% }
</SELECT>
<%init>
my %opt = @_;
my $curr_value = $opt{'curr_value'};
my $conf = new FS::Conf;
my $empty_label =
$opt{'empty_label'}
|| 'Default ('.
($conf->config('invoice_default_terms') || 'Payable upon receipt').
')';
my @terms = ( 'Payable upon receipt',
( map "Net $_", 0, 10, 15, 20, 30, 45, 60 ),
);
</%init>
More information about the freeside-commits
mailing list