[freeside-commits] freeside/FS/FS part_svc.pm, 1.38, 1.39 cust_svc.pm, 1.88, 1.89
Ivan,,,
ivan at wavetail.420.am
Tue Jun 28 15:36:22 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9754/FS/FS
Modified Files:
part_svc.pm cust_svc.pm
Log Message:
add no export option to bulk service changes, RT#13439
Index: part_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_svc.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -w -d -r1.38 -r1.39
--- part_svc.pm 21 Jun 2011 01:04:55 -0000 1.38
+++ part_svc.pm 28 Jun 2011 22:36:20 -0000 1.39
@@ -12,7 +12,7 @@
@ISA = qw(FS::Record);
-$DEBUG = 0;
+$DEBUG = 1;
=head1 NAME
@@ -816,6 +816,9 @@
my $param = thaw(decode_base64(shift));
warn Dumper($param) if $DEBUG;
+ local($FS::svc_Common::noexport_hack) = 1
+ if $param->{'noexport'};
+
my $old_part_svc =
qsearchs('part_svc', { 'svcpart' => $param->{'old_svcpart'} } );
Index: cust_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_svc.pm,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -w -d -r1.88 -r1.89
--- cust_svc.pm 1 Apr 2011 02:52:12 -0000 1.88
+++ cust_svc.pm 28 Jun 2011 22:36:20 -0000 1.89
@@ -308,7 +308,9 @@
my $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $self->pkgnum } );
return "Unknown pkgnum" unless $cust_pkg;
($part_svc) = grep { $_->svcpart == $self->svcpart } $cust_pkg->part_svc;
-
+ return "No svcpart ". $self->svcpart.
+ " services in pkgpart ". $cust_pkg->pkgpart
+ unless $part_svc;
return "Already ". $part_svc->get('num_cust_svc'). " ". $part_svc->svc.
" services for pkgnum ". $self->pkgnum
if $part_svc->get('num_avail') == 0 and !$ignore_quantity;
More information about the freeside-commits
mailing list