summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-14 16:36:41 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-03-14 16:45:41 -0500
commit8e1ae165bfb1fba2e3cca8081acadefc81aac95a (patch)
tree0faec96ee53102631b27e5a9b46c9edec214684c /FS
parent1ff7070534d12c49c9d16f230301a3880e8dd5ec (diff)
RT#38733: Sales forecasting using quotes [percentage sign and check]
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/quotation.pm3
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;