X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcustomer-table.html;h=aa085c41aa3994482c4bda2cb03b77ce3337c003;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=4d9d10213a5a5349ce9ed6f078a2f6cf7e62265f;hpb=b64ad663a0b694d86079c82c80f9de929b2559af;p=freeside.git diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index 4d9d10213..aa085c41a 100644 --- a/httemplate/elements/customer-table.html +++ b/httemplate/elements/customer-table.html @@ -128,7 +128,7 @@ Example: custnum_obj.value = customerArray[0]; custnum_obj.style.color = '#000000'; customer.value = customerArray[1]; - balance.innerHTML = customerArray[2]; + balance.innerHTML = '<% $money_char %>' + customerArray[2] + '   '; status.innerHTML = customerArray[3]; status.style.color = '#'+customerArray[4]; @@ -205,7 +205,7 @@ Example: custnum_obj.value = customerArray[0]; custnum_obj.style.color = '#000000'; customer.value = customerArray[1]; - balance.innerHTML = customerArray[2]; + balance.innerHTML = '<% $money_char %>' + customerArray[2] + '   '; status.innerHTML = customerArray[3]; status.style.color = '#'+customerArray[4]; @@ -277,7 +277,7 @@ Example: custnum_obj.value = customerArray[0][0]; customer_obj.value = customerArray[0][1]; - balance.innerHTML = customerArray[0][2]; + balance.innerHTML = '<% $money_char %>' + customerArray[0][2] + '   '; status.innerHTML = customerArray[0][3]; status.style.color = '#'+customerArray[0][4]; @@ -345,7 +345,7 @@ Example: var pos_underscore2 = custnum_balance_status.indexOf('_',pos_underscore1+1); var pos_underscore3 = custnum_balance_status.indexOf('_',pos_underscore2+1); var custnum = custnum_balance_status.substring(0,pos_underscore1); - var balance = custnum_balance_status.substring(pos_underscore1+1,pos_underscore2); + var balance = custnum_balance_status.substring(pos_underscore1+1,pos_underscore2) + '   '; var status = custnum_balance_status.substring(pos_underscore2+1,pos_underscore3); var color = custnum_balance_status.substring(pos_underscore3+1); @@ -355,7 +355,7 @@ Example: customer_obj.value = customer; customer_obj.style.color = '#000000'; - balance_obj.innerHTML = balance; + balance_obj.innerHTML = '<% $money_char %>' + balance; status_obj.innerHTML = status; status_obj.style.color = '#'+color; @@ -494,14 +494,14 @@ Example: % $col++; % } - + +   % } @@ -649,11 +649,11 @@ Example: row.appendChild(customer_cell); var balance_cell = document.createElement('TD'); + balance_cell.style.textAlign = 'right'; 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 +720,7 @@ Example: <%init> my(%opt) = @_; +my $conf = new FS::Conf; $opt{prefix} = '' unless defined $opt{prefix}; $opt{prefix} .= '_' if $opt{prefix}; @@ -740,4 +741,6 @@ my %align = ( 'c' => 'center', ); +my $money_char = $conf->config('money_char') || '$'; +