freeside/httemplate/search cust_bill.html,1.11,1.12
ivan
ivan at pouncequick.420.am
Sun May 15 04:58:43 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory pouncequick:/tmp/cvs-serv4833
Modified Files:
cust_bill.html
Log Message:
use money_char config
Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- cust_bill.html 15 May 2005 11:46:58 -0000 1.11
+++ cust_bill.html 15 May 2005 11:58:41 -0000 1.12
@@ -58,6 +58,9 @@
: '';
};
+ my $conf = new FS::Conf;
+ my $money_char = $conf->config('money_char') || '$';
+
%><%= include( 'elements/search.html',
'title' => 'Invoice Search Results',
'name' => 'invoices',
@@ -72,8 +75,8 @@
'Company' ],
'fields' => [
'invnum',
- sub { sprintf('$%.2f', shift->get('owed') ) },
- sub { sprintf('$%.2f', shift->charged ) },
+ sub { sprintf($money_char.'%.2f', shift->get('owed') ) },
+ sub { sprintf($money_char.'%.2f', shift->charged ) },
sub { time2str('%b %d %Y', shift->_date ) },
sub { my $cust_bill = shift;
my $cust_main = $cust_bill->cust_main;
More information about the freeside-commits
mailing list