summaryrefslogtreecommitdiff
path: root/httemplate/edit/quotation.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-02 15:11:04 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-03-02 15:11:04 -0600
commit8b70832328eb02dc9253dab7b436c6479b588162 (patch)
tree9329dc8cc4201a39718cc844b1165c1c751e3995 /httemplate/edit/quotation.html
parent96d579596bf4dfbb4cd959bf8dc350ef8dc7fa06 (diff)
RT#38733: Sales forecasting using quotes
Diffstat (limited to 'httemplate/edit/quotation.html')
-rw-r--r--httemplate/edit/quotation.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/quotation.html b/httemplate/edit/quotation.html
index cc95d8781..437284094 100644
--- a/httemplate/edit/quotation.html
+++ b/httemplate/edit/quotation.html
@@ -7,13 +7,17 @@
'prospectnum' => 'Prospect',
'custnum' => 'Customer',
'_date' => 'Date',
- 'disabled' => 'Disabled',
+ 'close_date' => 'Close Date',
+ 'confidence' => 'Confidence',
+ ($can_disable ? ('disabled' => 'Disabled') : ()),
},
'fields' => [
{ field=>'prospectnum', type=>'fixed-prospect_main' },
{ field=>'custnum', type=>'fixed-cust_main' },
{ field=>'_date', type=>'fixed-date' },
- { field=>'disabled', type=>'checkbox', value=>'Y'},
+ { field=>'close_date', type=>'input-date-field' },
+ { field=>'confidence', type=>'text', size=>6 },
+ ($can_disable ? { field=>'disabled', type=>'checkbox', value=>'Y'} : ()),
],
#XXX some way to disable the "view all"
'new_callback' => sub { my( $cgi, $quotation) = @_;
@@ -28,4 +32,6 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Generate quotation');
+my $can_disable = $FS::CurrentUser::CurrentUser->access_right('Disable quotation');
+
</%init>