time/data/etc. unit pricing add-ons, RT#24392
[freeside.git] / httemplate / browse / part_pkg.cgi
index b073866..574cf7a 100755 (executable)
@@ -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' ).
             [
               { data    => "Plus $money_char". $_->price. ' '.
                            ( $_->action eq 'increment' ? 'per' : 'for' ).