projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some more customer output formats that include service address, RT#4583
[freeside.git]
/
FS
/
FS
/
type_pkgs.pm
diff --git
a/FS/FS/type_pkgs.pm
b/FS/FS/type_pkgs.pm
index
efba60d
..
bf34e7c
100644
(file)
--- a/
FS/FS/type_pkgs.pm
+++ b/
FS/FS/type_pkgs.pm
@@
-35,6
+35,8
@@
FS::Record. The following fields are currently supported:
=over 4
=over 4
+=item typepkgnum - primary key
+
=item typenum - Agent type, see L<FS::agent_type>
=item pkgpart - Billing item definition, see L<FS::part_pkg>
=item typenum - Agent type, see L<FS::agent_type>
=item pkgpart - Billing item definition, see L<FS::part_pkg>
@@
-80,7
+82,8
@@
sub check {
my $self = shift;
my $error =
my $self = shift;
my $error =
- $self->ut_number('typenum')
+ $self->ut_numbern('typepkgnum')
+ || $self->ut_number('typenum')
|| $self->ut_number('pkgpart')
;
return $error if $error;
|| $self->ut_number('pkgpart')
;
return $error if $error;
@@
-91,7
+94,7
@@
sub check {
return "Unknown pkgpart"
unless qsearchs( 'part_pkg', { 'pkgpart' => $self->pkgpart } );
return "Unknown pkgpart"
unless qsearchs( 'part_pkg', { 'pkgpart' => $self->pkgpart } );
- ''; #no error
+ $self->SUPER::check;
}
=item part_pkg
}
=item part_pkg
@@
-109,10
+112,6
@@
sub part_pkg {
=back
=back
-=head1 VERSION
-
-$Id: type_pkgs.pm,v 1.2 2002-10-04 12:57:06 ivan Exp $
-
=head1 BUGS
=head1 SEE ALSO
=head1 BUGS
=head1 SEE ALSO