projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe701f7
)
quick payment entry improvements, RT8121
author
levinse
<levinse>
Sun, 5 Jun 2011 17:22:48 +0000
(17:22 +0000)
committer
levinse
<levinse>
Sun, 5 Jun 2011 17:22:48 +0000
(17:22 +0000)
httemplate/elements/customer-table.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/customer-table.html
b/httemplate/elements/customer-table.html
index
4d9d102
..
8564c31
100644
(file)
--- a/
httemplate/elements/customer-table.html
+++ b/
httemplate/elements/customer-table.html
@@
-494,12
+494,12
@@
Example:
</TD>
% $col++;
% }
</TD>
% $col++;
% }
- <TD>
+ <TD STYLE="text-align:right;">
+ <% $money_char %>
<SPAN
NAME = "balance<% $row %>"
ID = "balance<% $row %>"
rownum = "<% $row %>"
<SPAN
NAME = "balance<% $row %>"
ID = "balance<% $row %>"
rownum = "<% $row %>"
- STYLE = "text-align:center;"
>
</SPAN>
</TD>
>
</SPAN>
</TD>
@@
-649,11
+649,12
@@
Example:
row.appendChild(customer_cell);
var balance_cell = document.createElement('TD');
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);
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);
balance_span.setAttribute('rownum', <% $opt{prefix} %>rownum);
balance_cell.appendChild(balance_span);
@@
-720,6
+721,7
@@
Example:
<%init>
my(%opt) = @_;
<%init>
my(%opt) = @_;
+my $conf = new FS::Conf;
$opt{prefix} = '' unless defined $opt{prefix};
$opt{prefix} .= '_' if $opt{prefix};
$opt{prefix} = '' unless defined $opt{prefix};
$opt{prefix} .= '_' if $opt{prefix};
@@
-740,4
+742,6
@@
my %align = (
'c' => 'center',
);
'c' => 'center',
);
+my $money_char = $conf->config('money_char') || '$';
+
</%init>
</%init>