summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_pkg.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-07 22:55:58 -0800
committerIvan Kohler <ivan@freeside.biz>2014-01-07 22:55:58 -0800
commit4427ad71b12bf27eac2a05d88141a82f9372d03f (patch)
tree77c01abea411f601df63bc2bae722504e03ff5e1 /httemplate/browse/part_pkg.cgi
parent76275769ed7ea66b154aef4d2dd00120a53196df (diff)
time/data/etc. unit pricing add-ons, RT#24392
Diffstat (limited to 'httemplate/browse/part_pkg.cgi')
-rwxr-xr-xhttemplate/browse/part_pkg.cgi15
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&nbsp;$money_char". $_->price. '&nbsp;'.
+ ( $_->action eq 'increment' ? 'per' : 'for' ).
+ "&nbsp;$amount&nbsp;$label",
+ align => 'center', #left?
+ colspan => 2,
+ },
+ ];
+ }
+ $part_pkg->part_pkg_usageprice
+ ),
( map { my $dst_pkg = $_->dst_pkg;
[
{ data => 'Supplemental: &nbsp;'.