X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg_usageprice.pm;h=9c3b1be876cd47f7783cdb7d5b4b3bf68c283097;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=88e3870d444e6d9d93972cfaeff343b04e005ee1;hpb=4427ad71b12bf27eac2a05d88141a82f9372d03f;p=freeside.git diff --git a/FS/FS/part_pkg_usageprice.pm b/FS/FS/part_pkg_usageprice.pm index 88e3870d4..9c3b1be87 100644 --- a/FS/FS/part_pkg_usageprice.pm +++ b/FS/FS/part_pkg_usageprice.pm @@ -121,8 +121,21 @@ sub check { $self->SUPER::check; } +=item target_info + +Returns a hash reference of information about the target of this object. +Keys are "label" and "multiplier". + +=cut + +sub target_info { + my $self = shift; + $self->targets->{$self->target}; +} + =item targets +(Class method) Returns a hash reference. Keys are possible values for the "target" field. Values are hash references with "label" and "multiplier" keys.