show customer on availability report, RT#10520
authorivan <ivan>
Wed, 10 Nov 2010 19:35:10 +0000 (19:35 +0000)
committerivan <ivan>
Wed, 10 Nov 2010 19:35:10 +0000 (19:35 +0000)
FS/FS/phone_avail.pm
httemplate/search/phone_avail.html

index 398d0f6..967d717 100644 (file)
@@ -5,7 +5,7 @@ use vars qw( @ISA $DEBUG $me );
 use FS::Record qw( qsearch qsearchs dbh );
 use FS::cust_svc;
 
-@ISA = qw(FS::Record);
+@ISA = qw(FS::cust_main_Mixin FS::Record);
 
 $me = '[FS::phone_avail]';
 $DEBUG = 0;
index e1c264f..9f28762 100644 (file)
@@ -29,7 +29,7 @@
                       '+'. $pn->countrycode. ' '.
                         $pn->npa. ' '.  $pn->nxx. '-'. $pn->station;
                     },
-               'name',
+               sub { shift->get('name') },
                'availbatch',
                 'exportnum', #XXX
                 #sub { },