diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-09 15:29:50 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-09 15:29:50 -0800 |
commit | 87a59b1bdf236765177c27ab18390ef1317cc34c (patch) | |
tree | 00ea14723ad672b5aedeb2a9f11a1f840ef3f619 /FS/FS/part_pkg.pm | |
parent | 8a7eec7b683294a15aab0b2bf1710e10fa80b4c5 (diff) |
time/data/etc. unit pricing add-ons, RT#24392
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r-- | FS/FS/part_pkg.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index 3c4c127..8e65c50 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -837,8 +837,8 @@ sub custom_comment { my $price_info = $self->price_info(@_); ( $self->custom ? '(CUSTOM) ' : '' ). $self->comment. - ( ( ($self->custom || $self->comment) && $price_info ) ? ' - ' : '' ). - $price_info; + ( ($self->custom || $self->comment) ? ' - ' : '' ). + ($price_info || 'No charge'); } =item pkg_class @@ -1068,6 +1068,10 @@ sub can_discount { 0; } # whether the plan allows changing the start date sub can_start_date { 1; } + +# whether the plan supports part_pkg_usageprice add-ons (a specific kind of +# pre-selectable usage pricing, there's others this doesn't refer to) +sub can_usageprice { 0; } # the delay start date if present sub delay_start_date { |