[freeside-commits] freeside/FS/FS Conf.pm, 1.215, 1.216 cust_main.pm, 1.330, 1.331

Ivan,,, ivan at wavetail.420.am
Fri Jan 11 14:53:59 PST 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv27645/FS/FS

Modified Files:
	Conf.pm cust_main.pm 
Log Message:
add option to enable searching of cust_main.agent_custid with one or two letter prefix before the numeric part

Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.215
retrieving revision 1.216
diff -u -d -r1.215 -r1.216
--- Conf.pm	17 Dec 2007 00:59:00 -0000	1.215
+++ Conf.pm	11 Jan 2008 22:53:56 -0000	1.216
@@ -2166,6 +2166,17 @@
 			 },
   },
 
+  {
+    'key'         => 'cust_main-agent_custid-format',
+    'section'     => '',
+    'description' => 'Enables searching of various formatted values in cust_main.agent_custid',
+    'type'        => 'select',
+    'select_hash' => [
+                       ''      => 'Numeric only',
+                       'ww?d+' => 'Numeric with one or two letter prefix',
+                     ],
+  },
+
 );
 
 1;

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.330
retrieving revision 1.331
diff -u -d -r1.330 -r1.331
--- cust_main.pm	8 Jan 2008 11:23:03 -0000	1.330
+++ cust_main.pm	11 Jan 2008 22:53:56 -0000	1.331
@@ -2166,8 +2166,7 @@
       # only for figuring next bill date, nothing else, so, reset $sdate again
       # here
       $sdate = $cust_pkg->bill || $cust_pkg->setup || $time;
-      $cust_pkg->last_bill($sdate)
-        if $cust_pkg->dbdef_table->column('last_bill');
+      $cust_pkg->last_bill($sdate);
 
       if ( $part_pkg->freq =~ /^\d+$/ ) {
         $mon += $part_pkg->freq;



More information about the freeside-commits mailing list