X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pkg.pm;h=e866a3f2d399805c5b558a6f6f12f1f5c18576eb;hb=af4463a31677181a21df0cde767cc11728cfeb0c;hp=f196a0a220d2548cb040e6ad380857615c506f24;hpb=4cc0b69a94138d85b1ff8b67966127af3c72288d;p=freeside.git diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index f196a0a22..e866a3f2d 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -955,8 +955,6 @@ sub cust_bill_pkg_display { my $default = new FS::cust_bill_pkg_display { billpkgnum =>$self->billpkgnum }; - return ( $default ) unless defined dbdef->table('cust_bill_pkg_display');#hmmm - my $type = $opt{type} if exists $opt{type}; my @result; @@ -1043,19 +1041,8 @@ sub cust_bill_pkg_discount { =cut -sub recur_show_zero { - #my $self = shift; - # $self->recur == 0 - #&& $self->pkgnum - #&& $self->cust_pkg->part_pkg->recur_show_zero; - - shift->_X_show_zero('recur'); - -} - -sub setup_show_zero { - shift->_X_show_zero('setup'); -} +sub recur_show_zero { shift->_X_show_zero('recur'); } +sub setup_show_zero { shift->_X_show_zero('setup'); } sub _X_show_zero { my( $self, $what ) = @_; @@ -1082,9 +1069,9 @@ and 'setuprecur' (set to "setup" or "recur" to limit to one or the other). sub owed_sql { my ($class, $start, $end, %opt) = @_; my $charged = - $opt{setuprecur} =~ /^s/ ? 'setup' : - $opt{setuprecur} =~ /^r/ ? 'recur' : - 'setup + recur'; + $opt{setuprecur} =~ /^s/ ? 'cust_bill_pkg.setup' : + $opt{setuprecur} =~ /^r/ ? 'cust_bill_pkg.recur' : + 'cust_bill_pkg.setup + cust_bill_pkg.recur'; if ( $opt{no_usage} ) { $charged .= ' - ' . $class->usage_sql;