[freeside-commits] freeside/httemplate/elements customer-table.html, 1.7, 1.8

Erik Levinson levinse at wavetail.420.am
Sun Jun 5 10:22:51 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv20261/httemplate/elements

Modified Files:
	customer-table.html 
Log Message:
quick payment entry improvements, RT8121

Index: customer-table.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/customer-table.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- customer-table.html	13 Apr 2011 05:42:38 -0000	1.7
+++ customer-table.html	5 Jun 2011 17:22:48 -0000	1.8
@@ -494,12 +494,12 @@
       </TD>
 %     $col++;
 %   }
-      <TD>
+      <TD STYLE="text-align:right;">
+        <% $money_char %> 
         <SPAN 
                NAME      = "balance<% $row %>"
                ID        = "balance<% $row %>"
                rownum    = "<% $row %>"
-               STYLE     = "text-align:center;"
         >
         </SPAN>
       </TD>
@@ -649,11 +649,12 @@
     row.appendChild(customer_cell);
     
     var balance_cell = document.createElement('TD');
+        balance_cell.style.textAlign = 'right';
+        balance_cell.innerHTML = '<% $money_char %>';
         
         var balance_span = document.createElement('SPAN');
         balance_span.setAttribute('name', 'balance'+<% $opt{prefix} %>rownum);
         balance_span.setAttribute('id',   'balance'+<% $opt{prefix} %>rownum);
-        balance_span.style.textAlign = 'center';
         balance_span.setAttribute('rownum', <% $opt{prefix} %>rownum);
         balance_cell.appendChild(balance_span);
 
@@ -720,6 +721,7 @@
 <%init>
 
 my(%opt) = @_;
+my $conf = new FS::Conf;
 
 $opt{prefix} = '' unless defined $opt{prefix};
 $opt{prefix} .= '_' if $opt{prefix};
@@ -740,4 +742,6 @@
   'c' => 'center',
 );
 
+my $money_char = $conf->config('money_char') || '$';
+
 </%init>



More information about the freeside-commits mailing list