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:38:58 -0500
commit216272ed8a5ccfc8dc72268b9b02cc8fcd4479cf (patch)
treeee2aa31446ea3063c28fc3b09ba21e97e8643c77 /FS
parentfd1b98490dcb8802f0b0a00120e742e97afd0bbe (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 db8b0fcb3..8e32eff29 100644
--- a/FS/FS/quotation.pm
+++ b/FS/FS/quotation.pm
@@ -138,6 +138,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;