diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-07 22:55:58 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-07 22:55:58 -0800 |
commit | 4427ad71b12bf27eac2a05d88141a82f9372d03f (patch) | |
tree | 77c01abea411f601df63bc2bae722504e03ff5e1 /httemplate/browse/part_pkg.cgi | |
parent | 76275769ed7ea66b154aef4d2dd00120a53196df (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 | 15 |
1 files changed, 15 insertions, 0 deletions
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: '. |