diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-02-19 23:07:11 -0600 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-02-19 23:07:11 -0600 |
commit | e1a356104a146205a4d83acdf2aac968788c3745 (patch) | |
tree | 469cea610a9f8a1b1a8b57e0b1f3c79dff1aa580 | |
parent | 480234fab6273818e06c68dc240ae4a494fecb30 (diff) |
RT# 79549 Requre a Rate Plan to use voip_cdr Price Plan
-rw-r--r-- | FS/FS/part_pkg/voip_cdr.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 1fb3bec..587a8c5 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -363,8 +363,8 @@ tie my %accountcode_tollfree_field, 'Tie::IxHash', 'validate' => sub { # Validation function for FS::part_pkg::check_options() my $options = shift; - return "Please select a rate plan for price plan VoIP/telco CDR rating (standard)" - unless $options->{ratenum}; + return "Please choose a Rate Plan for use with selected Rating Method" + if $options->{rating_method} eq 'prefix' && !$options->{ratenum}; return; }, ); |