X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fquotation.pm;h=401711b4aed140701d3014abaa7e7531b77079e7;hb=d6103133f3de3b156601aea1347eadc07df4ab04;hp=7f53e313055f6c33c67db7a093480e782e14d1d6;hpb=f7e13fe2f0a39fd277f2990e076b662f00c2b088;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; }