projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run_bill_events option for order_pkg, RT#42053
[freeside.git]
/
FS
/
FS
/
quotation.pm
diff --git
a/FS/FS/quotation.pm
b/FS/FS/quotation.pm
index
cb3d80b
..
8e32eff
100644
(file)
--- a/
FS/FS/quotation.pm
+++ b/
FS/FS/quotation.pm
@@
-69,6
+69,13
@@
disabled
usernum
usernum
+=item close_date
+
+projected date when the quotation will be closed
+
+=item confidence
+
+projected confidence (expressed as integer) that quotation will close
=back
=back
@@
-122,6
+129,8
@@
sub check {
|| $self->ut_numbern('_date')
|| $self->ut_enum('disabled', [ '', 'Y' ])
|| $self->ut_numbern('usernum')
|| $self->ut_numbern('_date')
|| $self->ut_enum('disabled', [ '', 'Y' ])
|| $self->ut_numbern('usernum')
+ || $self->ut_numbern('close_date')
+ || $self->ut_numbern('confidence')
;
return $error if $error;
;
return $error if $error;
@@
-129,6
+138,9
@@
sub check {
$self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;
$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;
return 'prospectnum or custnum must be specified'
if ! $self->prospectnum
&& ! $self->custnum;