X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_pkg.cgi;fp=httemplate%2Fbrowse%2Fpart_pkg.cgi;h=b07386618ab1f70265252760485e6f4702cd887c;hp=8b50a509fd15a946727b991679b0a850e06f2fae;hb=4427ad71b12bf27eac2a05d88141a82f9372d03f;hpb=76275769ed7ea66b154aef4d2dd00120a53196df diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 8b50a509f..b07386618 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -277,6 +277,21 @@ push @fields, sub { : () ), ], + ( + map { my $amount = $_->amount + / (FS::part_pkg_usageprice->targets->{$_->target}{multiplier}||1); + my $label = FS::part_pkg_usageprice->targets->{$_->target}{label}; + [ + { data => "Plus $money_char". $_->price. ' '. + ( $_->action eq 'increment' ? 'per' : 'for' ). + " $amount $label", + align => 'center', #left? + colspan => 2, + }, + ]; + } + $part_pkg->part_pkg_usageprice + ), ( map { my $dst_pkg = $_->dst_pkg; [ { data => 'Supplemental:  '.