summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg.pm
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-02-16 18:13:27 -0600
committerMitch Jackson <mitch@freeside.biz>2018-05-26 19:34:08 +0000
commit281b8770237d7686cbf19634fc3f4b0c42a6944e (patch)
treebd7b011e7d905d39d93b26b777445bb0cef522f6 /FS/FS/part_pkg.pm
parent5af5a63aac322198361ebb0c1e2dd68ae8ed47c8 (diff)
RT# 79549 Requre a Rate Plan to use voip_cdr Price Plan
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r--FS/FS/part_pkg.pm17
1 files changed, 11 insertions, 6 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index 4492c40..c088205 100644
--- a/FS/FS/part_pkg.pm
+++ b/FS/FS/part_pkg.pm
@@ -786,11 +786,17 @@ sub check {
=item check_options
-For a passed I<$options> hashref, validates any options that
-have 'validate' subroutines defined in the info hash,
-then validates the entire hashref if the price plan has
-its own 'validate' subroutine defined in the info hash
-(I<$options> values might be altered.)
+Pass an I<$options> hashref that contains the values to be
+inserted or updated for any FS::part_pkg::MODULE.pm.
+
+For each key in I<$options>, validates the value by calling
+the 'validate' subroutine defined for that option e.g.
+FS::part_pkg::MODULE::plan_info()->{$KEY}->{validate}. The
+option validation function is only called when the hashkey for
+that option exists in I<$options>.
+
+Then the module validation function is called, from
+FS::part_pkg::MODULE::plan_info()->{validate}
Returns error message, or empty string if valid.
@@ -2596,4 +2602,3 @@ schema.html from the base documentation.
=cut
1;
-