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:36:41 -0500
commit2ffdb485e5534df3d89bcc12d4d02d485e9b28f5 (patch)
treef4fbc6475881f7648f76b675b92aba1eea1461d2 /FS
parent9d83064764df266d3e693cc75cdde8478498215a (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 db8b0fc..8e32eff 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;