[freeside-commits] freeside/httemplate/elements select-taxclass.html, 1.5, 1.6 tr-select-taxclass.html, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Wed Apr 16 13:34:43 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv16469/elements
Modified Files:
select-taxclass.html tr-select-taxclass.html
Log Message:
fix tax class on package def edit
Index: select-taxclass.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-taxclass.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- select-taxclass.html 14 Jan 2008 00:22:34 -0000 1.5
+++ select-taxclass.html 16 Apr 2008 20:34:41 -0000 1.6
@@ -22,7 +22,9 @@
<%init>
-my( $selected_taxclass, %opt ) = @_;
+my %opt = @_;
+my $selected_taxclass = $opt{'curr_value'}; # || $opt{'value'} necessary?
+
my $conf = new FS::Conf;
unless ( $opt{'taxclasses'} ) {
Index: tr-select-taxclass.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-select-taxclass.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- tr-select-taxclass.html 20 Feb 2008 01:19:45 -0000 1.3
+++ tr-select-taxclass.html 16 Apr 2008 20:34:41 -0000 1.4
@@ -2,22 +2,23 @@
% || scalar(@{ $opt{'taxclasses'} }) == 0
% ) {
- <INPUT TYPE="hidden" NAME=""<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $taxclass %>">
+ <INPUT TYPE="hidden" NAME=""<% $opt{'element_name'} || $opt{'field'} || 'taxclass' %>" VALUE="<% $selected_taxclass %>">
% } else {
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Tax class: ' %></TD>
<TD>
- <% include( '/elements/select-taxclass.html', $taxclass, %opt ) %>
+ <% include( '/elements/select-taxclass.html', 'curr_value' => $selected_taxclass, %opt ) %>
</TD>
</TR>
% }
<%init>
-my( $taxclass, %opt ) = @_;
+my( %opt ) = @_;
my $conf = new FS::Conf;
+my $selected_taxclass = $opt{'curr_value'}; # || $opt{'value'} necessary?
unless ( $opt{'taxclasses'} ) {
More information about the freeside-commits
mailing list