diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2018-02-19 23:07:11 -0600 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2018-05-26 21:04:44 +0000 |
| commit | 5d0439ae95519ac2a076bc1cd9a98351f51b354a (patch) | |
| tree | 683565c5911d7e8c7e5383f108c0eda1ff0e10a7 | |
| parent | de07e068a34760e588bbc29708fd5197b7ee9ea1 (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 870292647..7947a143d 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -374,8 +374,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; }, ); |
