projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't enable 'Void invoices' by default, being overused in lieu of more accounting...
[freeside.git]
/
FS
/
FS
/
cust_bill_pkg_discount.pm
diff --git
a/FS/FS/cust_bill_pkg_discount.pm
b/FS/FS/cust_bill_pkg_discount.pm
index
e7dd5f2
..
534a067
100644
(file)
--- a/
FS/FS/cust_bill_pkg_discount.pm
+++ b/
FS/FS/cust_bill_pkg_discount.pm
@@
-1,10
+1,7
@@
package FS::cust_bill_pkg_discount;
package FS::cust_bill_pkg_discount;
+use base qw( FS::cust_main_Mixin FS::Record );
use strict;
use strict;
-use base qw( FS::cust_main_Mixin FS::Record );
-use FS::Record qw( qsearch qsearchs );
-use FS::cust_bill_pkg;
-use FS::cust_pkg_discount;
=head1 NAME
=head1 NAME
@@
-28,8
+25,8
@@
FS::cust_bill_pkg_discount - Object methods for cust_bill_pkg_discount records
=head1 DESCRIPTION
An FS::cust_bill_pkg_discount object represents the slice of a customer
=head1 DESCRIPTION
An FS::cust_bill_pkg_discount object represents the slice of a customer
-applied to a line item. FS::cust_bill_pkg_discount inherits from
-FS::Record. The following fields are currently supported:
+discount applied to a specific line item. FS::cust_bill_pkg_discount inherits
+
from
FS::Record. The following fields are currently supported:
=over 4
=over 4
@@
-125,25
+122,10
@@
sub check {
Returns the associated line item (see L<FS::cust_bill_pkg>).
Returns the associated line item (see L<FS::cust_bill_pkg>).
-=cut
-
-sub cust_bill_pkg {
- my $self = shift;
- qsearchs( 'cust_bill_pkg', { 'billpkgnum' => $self->billpkgnum } ) ;
-}
-
=item cust_pkg_discount
Returns the associated customer discount (see L<FS::cust_pkg_discount>).
=item cust_pkg_discount
Returns the associated customer discount (see L<FS::cust_pkg_discount>).
-=cut
-
-sub cust_pkg_discount {
- my $self = shift;
- qsearchs( 'cust_pkg_discount', { 'pkgdiscountnum' => $self->pkgdiscountnum });
-}
-
-
=back
=head1 BUGS
=back
=head1 BUGS