X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pkg_display.pm;h=e3afded4bb05967a6bc1d18d6c41109f04d17276;hp=a864ec114b332648aa50a11b72d26a5b4ab164ca;hb=a36e0f8a0f69349dafaa16d1d2d57dfb6e5dbc85;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/FS/FS/cust_bill_pkg_display.pm b/FS/FS/cust_bill_pkg_display.pm index a864ec114..e3afded4b 100644 --- a/FS/FS/cust_bill_pkg_display.pm +++ b/FS/FS/cust_bill_pkg_display.pm @@ -1,10 +1,7 @@ package FS::cust_bill_pkg_display; +use base qw( FS::Record ); use strict; -use vars qw( @ISA ); -use FS::Record qw( qsearch qsearchs ); - -@ISA = qw(FS::Record); =head1 NAME @@ -27,26 +24,26 @@ FS::cust_bill_pkg_display - Object methods for cust_bill_pkg_display records =head1 DESCRIPTION -An FS::cust_bill_pkg_display object represents line item display information. -FS::cust_bill_pkg_display inherits from FS::Record. The following fields are -currently supported: - -=over 4 - -=item billpkgdisplaynum +An FS::cust_bill_pkg_display object represents an instruction to display a +line item in a specific invoice section. FS::cust_bill_pkg_display inherits +from FS::Record and is many-to-one with FS::cust_bill_pkg (invoice line +items). -primary key +The following fields are currently supported: -=item billpkgnum +=over 4 -billpkgnum +=item billpkgdisplaynum - primary key -=item section +=item billpkgnum - the line item number (L foreign key) -section +=item section - the section name where this item should be shown. Defaults +to the package category name, if there is one. =cut +# actually it defaults to null, but then calling ->section will return the +# category name. sub section { my ( $self, $value ) = @_; if ( defined($value) ) { @@ -64,17 +61,19 @@ sub section { } } -=item post_total - -post_total - -=item type - -type +=item post_total - 'Y' to have this item shown in a "late" section (below +the invoice totals). -=item summary +=item type - Which portion of the item's charges to show in the specified +position. 'S' to show setup fees (including tax and one-time charge), +'R' to show the non-usage recurring charge, 'U' to show the usage charge, +null to show all three as a single amount. -summary +=item summary - 'Y' to show a usage summary of this line item. This has +the following effects if type = 'U': +- The description will always be "Usage charges" rather than the package name. +- Service labels and usage details (CDRs) are hidden. +- It will only display on multisection invoices. =back @@ -84,7 +83,8 @@ summary =item new HASHREF -Creates a new line item display object. To add the record to the database, see L<"insert">. +Creates a new line item display object. To add the record to the database, +see L<"insert">. Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the I method. @@ -143,19 +143,10 @@ sub check { Returns the associated cust_bill_pkg (see L) for this line item display object. -=cut - -sub cust_bill_pkg { - my $self = shift; - qsearchs( 'cust_bill_pkg', { 'billpkgnum' => $self->billpkgnum } ) ; -} - =back =head1 BUGS - - =head1 SEE ALSO L, L, schema.html from the base documentation.