X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fquotation.pm;h=401711b4aed140701d3014abaa7e7531b77079e7;hb=cb7ff9f91771b63d712493d966de041d857e83e7;hp=7f53e313055f6c33c67db7a093480e782e14d1d6;hpb=ae732741cb031ddb6c99156a8804cac3e7500f76;p=freeside.git diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm index 7f53e3130..401711b4a 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -120,6 +120,10 @@ sub check { $self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum; + return 'prospectnum or custnum must be specified' + if ! $self->prospectnum + && ! $self->custnum; + $self->SUPER::check; }