diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-03-14 16:36:41 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-03-14 16:45:41 -0500 |
commit | 8e1ae165bfb1fba2e3cca8081acadefc81aac95a (patch) | |
tree | 0faec96ee53102631b27e5a9b46c9edec214684c /FS | |
parent | 1ff7070534d12c49c9d16f230301a3880e8dd5ec (diff) |
RT#38733: Sales forecasting using quotes [percentage sign and check]
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 daacf71fe..f828a3920 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -133,6 +133,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; |