[freeside-commits] freeside/FS/FS/UI Web.pm,1.36,1.37

Ivan,,, ivan at wavetail.420.am
Thu Oct 9 18:15:52 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv11362/FS/FS/UI

Modified Files:
	Web.pm 
Log Message:
add options to auto-generate agent_custid and display it as the customer number, RT#4099

Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- Web.pm	6 Sep 2008 20:54:24 -0000	1.36
+++ Web.pm	10 Oct 2008 01:15:50 -0000	1.37
@@ -214,6 +214,8 @@
   warn "FS::UI:Web::cust_header called"
     if $DEBUG;
 
+  my $conf = new FS::Conf;
+
   my %header2method = (
     'Customer'                 => 'name',
     'Cust. Status'             => 'ucfirst_cust_status',
@@ -239,6 +241,8 @@
     'Payment Type'             => 'payby',
     'Current Balance'          => 'current_balance',
   );
+  $header2method{'Cust#'} = 'display_custnum'
+    if $conf->exists('cust_main-default_agent_custid');
 
   my %header2colormethod = (
     'Cust. Status' => 'cust_statuscolor',
@@ -261,7 +265,6 @@
 
   } else {
 
-    my $conf = new FS::Conf;
     if (    $conf->exists('cust-fields')
          && $conf->config('cust-fields') =~ /^([\w\. \|\#\(\)]+):?/
        )



More information about the freeside-commits mailing list