[freeside-commits] freeside/FS/FS part_pkg.pm,1.65,1.66
Ivan,,,
ivan at wavetail.420.am
Tue Apr 15 17:29:20 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv17533
Modified Files:
part_pkg.pm
Log Message:
new package def editor
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- part_pkg.pm 15 Apr 2008 20:47:59 -0000 1.65
+++ part_pkg.pm 16 Apr 2008 00:29:18 -0000 1.66
@@ -17,7 +17,7 @@
use FS::agent;
use FS::part_pkg_taxoverride;
use FS::part_pkg_taxproduct;
-#XXX#use FS::part_pkg_link;
+use FS::part_pkg_link;
@ISA = qw( FS::m2m_Common FS::option_Common );
$DEBUG = 0;
@@ -701,15 +701,30 @@
'';
}
-=item dst_pkgpart
+=item bill_part_pkg_link
+
+Returns the associated part_pkg_link records (see L<FS::part_pkg_link).
=cut
-sub part_pkg_link {
- ();
- #XXX
- #my $self = shift;
- #qsearch('part_pkg_link', { 'src_pkgpart' => $self->pkgpart } );
+sub bill_part_pkg_link {
+ shift->_part_pkg_link('bill', @_);
+}
+
+=item svc_part_pkg_link
+
+=cut
+
+sub svc_part_pkg_link {
+ shift->_part_pkg_link('svc', @_);
+}
+
+sub _part_pkg_link {
+ my( $self, $type ) = shift;
+ qsearch('part_pkg_link', { 'src_pkgpart' => $self->pkgpart,
+ 'link_type' => $type,
+ }
+ );
}
=item part_pkg_taxoverride
More information about the freeside-commits
mailing list