freeside/FS/FS svc_Common.pm,1.22,1.23
ivan
ivan at pouncequick.420.am
Fri Jul 30 00:12:10 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv20000
Modified Files:
svc_Common.pm
Log Message:
set fixed values from an explicitly specified svcpart on replace too
Index: svc_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_Common.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- svc_Common.pm 30 Jul 2004 04:54:40 -0000 1.22
+++ svc_Common.pm 30 Jul 2004 07:12:07 -0000 1.23
@@ -394,12 +394,12 @@
#get part_svc
my $svcpart;
- if ( $self->svcnum && qsearchs('cust_svc', {'svcnum'=>$self->svcnum}) ) {
+ if ( $self->get('svcpart') ) {
+ $svcpart = $self->get('svcpart');
+ } elsif ( $self->svcnum && qsearchs('cust_svc', {'svcnum'=>$self->svcnum}) ) {
my $cust_svc = $self->cust_svc;
return "Unknown svcnum" unless $cust_svc;
$svcpart = $cust_svc->svcpart;
- } else {
- $svcpart = $self->getfield('svcpart');
}
my $part_svc = qsearchs( 'part_svc', { 'svcpart' => $svcpart } );
return "Unkonwn svcpart" unless $part_svc;
More information about the freeside-commits
mailing list