[freeside-commits] freeside/FS/FS phone_avail.pm,1.5,1.6
Ivan,,,
ivan at wavetail.420.am
Wed Nov 10 11:22:42 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14851
Modified Files:
phone_avail.pm
Log Message:
add missing cust_svc method to phone_avail, RT#10520
Index: phone_avail.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/phone_avail.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- phone_avail.pm 8 Nov 2010 22:04:52 -0000 1.5
+++ phone_avail.pm 10 Nov 2010 19:22:40 -0000 1.6
@@ -3,6 +3,7 @@
use strict;
use vars qw( @ISA $DEBUG $me );
use FS::Record qw( qsearch qsearchs );
+use FS::cust_svc;
@ISA = qw(FS::Record);
@@ -151,6 +152,16 @@
$self->SUPER::check;
}
+=item cust_svc
+
+=cut
+
+sub cust_svc {
+ my $self = shift;
+ return '' unless $self->svcnum;
+ qsearchs('cust_svc', { 'svcnum' => $self->svcnum });
+}
+
sub process_batch_import {
my $job = shift;
More information about the freeside-commits
mailing list