[freeside-commits] freeside/FS/FS cust_pkg.pm,1.179.2.4,1.179.2.5
Erik Levinson
levinse at wavetail.420.am
Mon Dec 20 22:26:16 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv32092/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_pkg.pm
Log Message:
self-service improvements: DIDs, RT10885
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.179.2.4
retrieving revision 1.179.2.5
diff -u -w -d -r1.179.2.4 -r1.179.2.5
--- cust_pkg.pm 8 Dec 2010 00:36:27 -0000 1.179.2.4
+++ cust_pkg.pm 21 Dec 2010 06:26:14 -0000 1.179.2.5
@@ -1728,6 +1728,13 @@
my $part_svc = $_->part_svc;
$part_svc->{'Hash'}{'num_avail'} = #evil encapsulation-breaking
$_->quantity - $self->num_cust_svc($_->svcpart);
+
+ # more evil encapsulation breakage
+ if($part_svc->{'Hash'}{'num_avail'} > 0) {
+ my @exports = $part_svc->part_export_did;
+ $part_svc->{'Hash'}{'can_get_dids'} = scalar(@exports);
+ }
+
$part_svc;
}
$self->part_pkg->pkg_svc;
More information about the freeside-commits
mailing list