From 8861d46820af163c7de7839178b6120c9b32ab2c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 8 Jan 2014 17:23:05 -0800 Subject: time/data/etc. unit pricing add-ons, RT#24392 --- httemplate/browse/part_pkg.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'httemplate/browse/part_pkg.cgi') diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index b07386618..574cf7af3 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -278,9 +278,8 @@ push @fields, sub { ), ], ( - map { my $amount = $_->amount - / (FS::part_pkg_usageprice->targets->{$_->target}{multiplier}||1); - my $label = FS::part_pkg_usageprice->targets->{$_->target}{label}; + map { my $amount = $_->amount / ($_->target_info->{multiplier} || 1); + my $label = $_->target_info->{label}; [ { data => "Plus $money_char". $_->price. ' '. ( $_->action eq 'increment' ? 'per' : 'for' ). -- cgit v1.2.1