[freeside-commits] freeside/FS/FS Schema.pm, 1.121, 1.122 rate.pm, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Sun Jan 18 19:50:49 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22346/FS/FS
Modified Files:
Schema.pm rate.pm
Log Message:
10 digit prefix matching, RT#4403
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- Schema.pm 18 Jan 2009 23:43:39 -0000 1.121
+++ Schema.pm 19 Jan 2009 03:50:46 -0000 1.122
@@ -1787,11 +1787,11 @@
'rate_prefix' => {
'columns' => [
- 'prefixnum', 'serial', '', '', '', '',
- 'regionnum', 'int', '', '',, '', '',
- 'countrycode', 'varchar', '', 3, '', '',
- 'npa', 'varchar', 'NULL', 6, '', '',
- 'nxx', 'varchar', 'NULL', 3, '', '',
+ 'prefixnum', 'serial', '', '', '', '',
+ 'regionnum', 'int', '', '', '', '',
+ 'countrycode', 'varchar', '', 3, '', '',
+ 'npa', 'varchar', 'NULL', 10, '', '', #actually the whole prefix
+ 'nxx', 'varchar', 'NULL', 3, '', '', #actually not used
],
'primary_key' => 'prefixnum',
'unique' => [],
Index: rate.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/rate.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- rate.pm 20 Nov 2008 19:02:30 -0000 1.9
+++ rate.pm 19 Jan 2009 03:50:47 -0000 1.10
@@ -290,7 +290,7 @@
#find a rate prefix, first look at most specific (4 digits) then 3, etc.,
# finally trying the country code only
my $rate_prefix = '';
- for my $len ( reverse(1..6) ) {
+ for my $len ( reverse(1..10) ) {
$rate_prefix = qsearchs('rate_prefix', {
'countrycode' => $countrycode,
#'npa' => { op=> 'LIKE', value=> substr($number, 0, $len) }
More information about the freeside-commits
mailing list