diff options
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/quotation.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm index db8b0fcb3..8e32eff29 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -138,6 +138,9 @@ sub check { $self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum; + return 'confidence must be an integer between 1 and 100' + if length($self->confidence) && (($self->confidence < 1) || ($self->confidence > 100)); + return 'prospectnum or custnum must be specified' if ! $self->prospectnum && ! $self->custnum; |