projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
part_pkg_usageprice.pm
diff --git
a/FS/FS/part_pkg_usageprice.pm
b/FS/FS/part_pkg_usageprice.pm
index
88e3870
..
9c3b1be
100644
(file)
--- a/
FS/FS/part_pkg_usageprice.pm
+++ b/
FS/FS/part_pkg_usageprice.pm
@@
-121,8
+121,21
@@
sub check {
$self->SUPER::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
=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.
Returns a hash reference. Keys are possible values for the "target" field.
Values are hash references with "label" and "multiplier" keys.