diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-01-09 12:28:19 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-01-09 12:28:19 -0500 |
commit | 057fc61586d26199005660b908ece68a7a1da681 (patch) | |
tree | 9b8e4717f0172e32c10af88a3bc37900530c94e9 /FS/FS/part_pkg/voip_inbound.pm | |
parent | 0edb6050aeb65200869a12d83d8de794ed384154 (diff) |
RT# 81249 - added ability to validate price plan option fields
Diffstat (limited to 'FS/FS/part_pkg/voip_inbound.pm')
-rw-r--r-- | FS/FS/part_pkg/voip_inbound.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/voip_inbound.pm b/FS/FS/part_pkg/voip_inbound.pm index efaf586ab..67c53af25 100644 --- a/FS/FS/part_pkg/voip_inbound.pm +++ b/FS/FS/part_pkg/voip_inbound.pm @@ -64,9 +64,13 @@ tie my %granularity, 'Tie::IxHash', FS::rate_detail::granularities(); }, 'use_cdrtypenum' => { 'name' => 'Only charge for CDRs where the CDR Type is set to this cdrtypenum: ', + 'validate' => \&FS::part_pkg::validate_number, + 'js_validate' => 'digits', }, 'ignore_cdrtypenum' => { 'name' => 'Do not charge for CDRs where the CDR Type is set to this cdrtypenum: ', + 'validate' => \&FS::part_pkg::validate_number, + 'js_validate' => 'digits', }, 'use_calltypenum' => { 'name' => 'Only charge for CDRs where the CDR Call Type is set to this cdrtypenum: ', |