From ba751f4f2e474abd9312d958952b6c1a3821dc7c Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Wed, 2 Mar 2016 15:11:04 -0600 Subject: RT#38733: Sales forecasting using quotes --- FS/FS/Schema.pm | 2 ++ FS/FS/quotation.pm | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'FS') 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; -- cgit v1.2.1