projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add quantity and location to self-service package order API, RT#33219
[freeside.git]
/
FS
/
FS
/
agent_type.pm
diff --git
a/FS/FS/agent_type.pm
b/FS/FS/agent_type.pm
index
5d6b94e
..
e0f7495
100644
(file)
--- a/
FS/FS/agent_type.pm
+++ b/
FS/FS/agent_type.pm
@@
-45,9
+45,17
@@
FS::Record. The following fields are currently supported:
=over 4
=over 4
-=item typenum
- primary key (assigned automatically for new agent types)
+=item typenum
-=item atype - Text name of this agent type
+primary key (assigned automatically for new agent types)
+
+=item atype
+
+Text name of this agent type
+
+=item disabled
+
+Disabled flag, empty or 'Y'
=back
=back
@@
-103,8
+111,9
@@
sub check {
my $self = shift;
$self->ut_numbern('typenum')
my $self = shift;
$self->ut_numbern('typenum')
- or $self->ut_text('atype')
- or $self->SUPER::check;
+ || $self->ut_text('atype')
+ || $self->ut_enum('disabled', [ '', 'Y' ] )
+ || $self->SUPER::check;
}
}