cleanup
authorIvan Kohler <ivan@freeside.biz>
Mon, 4 Jun 2012 06:24:57 +0000 (23:24 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 4 Jun 2012 06:24:57 +0000 (23:24 -0700)
FS/FS/cust_bill_pkg.pm

index 6551ca8..e866a3f 100644 (file)
@@ -955,8 +955,6 @@ sub cust_bill_pkg_display {
   my $default =
     new FS::cust_bill_pkg_display { billpkgnum =>$self->billpkgnum };
 
   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;
 
   my $type = $opt{type} if exists $opt{type};
   my @result;
 
@@ -1043,19 +1041,8 @@ sub cust_bill_pkg_discount {
 
 =cut
 
 
 =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 ) = @_;
 
 sub _X_show_zero {
   my( $self, $what ) = @_;