summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-02 15:11:04 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-03-08 13:34:17 -0600
commitba751f4f2e474abd9312d958952b6c1a3821dc7c (patch)
tree65c82a6d720a6ae6cf0e0f0a289790ee783fdf70 /FS
parent714a06b80a66589cc2a16bb2f414b256a679cb66 (diff)
RT#38733: Sales forecasting using quotes
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Schema.pm2
-rw-r--r--FS/FS/quotation.pm9
2 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 2269006a3..da66d7dba 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -1356,6 +1356,8 @@ sub tables_hashref {
'_date', @date_type, '', '',
'disabled', 'char', 'NULL', 1, '', '',
'usernum', 'int', 'NULL', '', '', '',
+ 'close_date', @date_type, '', '',
+ 'confidence', 'int', 'NULL', '', '', '',
#'total', @money_type, '', '',
#'quotation_term', 'varchar', 'NULL', $char_d, '', '',
],
diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm
index 6a7c9c4fe..daacf71fe 100644
--- a/FS/FS/quotation.pm
+++ b/FS/FS/quotation.pm
@@ -65,6 +65,13 @@ disabled
usernum
+=item close_date
+
+projected date when the quotation will be closed
+
+=item confidence
+
+projected confidence (expressed as integer) that quotation will close
=back
@@ -117,6 +124,8 @@ sub check {
|| $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;