add option to enable searching of cust_main.agent_custid with one or two letter prefi...
authorivan <ivan>
Fri, 11 Jan 2008 22:53:56 +0000 (22:53 +0000)
committerivan <ivan>
Fri, 11 Jan 2008 22:53:56 +0000 (22:53 +0000)
FS/FS/Conf.pm
FS/FS/cust_main.pm

index 85a2b9b..fc67c35 100644 (file)
@@ -2166,6 +2166,17 @@ worry that config_items is freeside-specific and icky.
                         },
   },
 
+  {
+    '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 de4d38d..ff441db 100644 (file)
@@ -2166,8 +2166,7 @@ sub bill {
       # 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;