diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-13 22:16:37 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-13 22:16:37 -0700 |
commit | 8d7cd4b2bd99cc1a711d81b55a1652d31eda4df5 (patch) | |
tree | f742c8f30a6724b4cf429a3247a2c9e075b668f2 /FS/FS/part_svc.pm | |
parent | 6a66ab1163bfcd6f46df00aa474d013530a1e13c (diff) |
service def classes, to support corecom portal, RT#17617
Diffstat (limited to 'FS/FS/part_svc.pm')
-rw-r--r-- | FS/FS/part_svc.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm index 7e592bf..20b80c6 100644 --- a/FS/FS/part_svc.pm +++ b/FS/FS/part_svc.pm @@ -9,6 +9,7 @@ use FS::part_svc_column; use FS::part_export; use FS::export_svc; use FS::cust_svc; +use FS::part_svc_class; @ISA = qw(FS::Record); @@ -51,6 +52,8 @@ FS::Record. The following fields are currently supported: =item svcdb - table used for this service. See L<FS::svc_acct>, L<FS::svc_domain>, and L<FS::svc_forward>, among others. +=item classnum - Optional service class (see L<FS::svc_class>) + =item disabled - Disabled flag, empty or `Y' =item preserve - Preserve after cancellation, empty or 'Y' @@ -387,6 +390,7 @@ sub check { || $self->ut_enum('disabled', [ '', 'Y' ] ) || $self->ut_enum('preserve', [ '', 'Y' ] ) || $self->ut_enum('selfservice_access', [ '', 'hidden', 'readonly' ] ) + || $self->ut_foreign_keyn('classnum', 'part_svc_class', 'classnum' ) ; return $error if $error; @@ -712,7 +716,7 @@ sub process { my $job = shift; my $param = thaw(decode_base64(shift)); - warn Dumper($param) if $DEBUG; + warn Dumper($param);# if $DEBUG; my $old = qsearchs('part_svc', { 'svcpart' => $param->{'svcpart'} }) if $param->{'svcpart'}; |