so Search.tsf and Search.rdf work
[freeside.git] / httemplate / search / cust_bill.html
index 440e468..c41befa 100755 (executable)
@@ -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;
@@ -87,6 +90,7 @@
                          $cust_main ? $cust_main->company : '';
                        },
                  ],
+                 'align' => 'rrrrll',
                  'links' => [
                    $link,
                    $link,