projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
825b7cf
)
add option to enable searching of cust_main.agent_custid with one or two letter prefi...
author
ivan
<ivan>
Fri, 11 Jan 2008 22:53:56 +0000
(22:53 +0000)
committer
ivan
<ivan>
Fri, 11 Jan 2008 22:53:56 +0000
(22:53 +0000)
FS/FS/Conf.pm
patch
|
blob
|
history
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Conf.pm
b/FS/FS/Conf.pm
index
85a2b9b
..
fc67c35
100644
(file)
--- a/
FS/FS/Conf.pm
+++ b/
FS/FS/Conf.pm
@@
-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;
);
1;
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
de4d38d
..
ff441db
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-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;
# 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;
if ( $part_pkg->freq =~ /^\d+$/ ) {
$mon += $part_pkg->freq;