hide display of date ranges when including a setup package as an add-on with a recurr...
authorIvan Kohler <ivan@freeside.biz>
Mon, 18 Feb 2013 03:01:04 +0000 (19:01 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 18 Feb 2013 03:01:04 +0000 (19:01 -0800)
FS/FS/Template_Mixin.pm

index 759b04e..2bf96ae 100644 (file)
@@ -2331,6 +2331,8 @@ sub _items_cust_bill_pkg {
           unless (
             $conf->exists('disable_line_item_date_ranges')
               || $part_pkg->option('disable_line_item_date_ranges',1)
           unless (
             $conf->exists('disable_line_item_date_ranges')
               || $part_pkg->option('disable_line_item_date_ranges',1)
+              || ! $cust_bill_pkg->sdate
+              || ! $cust_bill_pkg->edate
           ) {
             my $time_period;
             my $date_style = '';
           ) {
             my $time_period;
             my $date_style = '';