),
],
(
- 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' ).