diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-08 17:23:05 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-08 17:23:05 -0800 |
commit | 8861d46820af163c7de7839178b6120c9b32ab2c (patch) | |
tree | ebd723b2d1ea70f57bc52f94c80d991b5f50094a /httemplate/browse/part_pkg.cgi | |
parent | 49809d3653e7ac4951d36716dce3cd25ba9c3728 (diff) |
time/data/etc. unit pricing add-ons, RT#24392
Diffstat (limited to 'httemplate/browse/part_pkg.cgi')
-rwxr-xr-x | httemplate/browse/part_pkg.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
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' ). |