X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fquotation.pm;h=8e32eff294d619cb8c9e7e4d1f76b5f90d6b143f;hb=f421a622461d5259804f0da238f349f4a790d91f;hp=db8b0fcb38ed05be5e01cbbd001d6d72e6a75bfc;hpb=8b70832328eb02dc9253dab7b436c6479b588162;p=freeside.git 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;