X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fquotation.pm;h=e72e6cf4d4af48922d269a3e6c84f1f5f32358fb;hb=705de04c6659330be111fbbd5149ae5587402196;hp=9d47857806ca64b24219b3c99cdfea0be6118a07;hpb=8a3252f9dd5f851d088142e9753289a4e7ab7934;p=freeside.git diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm index 9d4785780..e72e6cf4d 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -118,6 +118,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; }