[freeside-commits] freeside/FS/FS cust_pkg.pm,1.218,1.219

Ivan,,, ivan at wavetail.420.am
Mon Dec 26 16:37:42 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4600

Modified Files:
	cust_pkg.pm 
Log Message:
fix cancellations of cust_svc records without corresponding svc_*  records

Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -w -d -r1.218 -r1.219
--- cust_pkg.pm	16 Nov 2011 04:00:21 -0000	1.218
+++ cust_pkg.pm	27 Dec 2011 00:37:40 -0000	1.219
@@ -775,7 +775,7 @@
     #schwartz
     map  { $_->[0] }
     sort { $a->[1] <=> $b->[1] }
-    map  { [ $_, $_->svc_x->table_info->{'cancel_weight'} ]; }
+    map  { [ $_, $_->svc_x ? $_->svc_x->table_info->{'cancel_weight'} : -1 ]; }
     qsearch( 'cust_svc', { 'pkgnum' => $self->pkgnum } )
   ) {
     my $part_svc = $cust_svc->part_svc;



More information about the freeside-commits mailing list