From 216272ed8a5ccfc8dc72268b9b02cc8fcd4479cf Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Mon, 14 Mar 2016 16:36:41 -0500 Subject: RT#38733: Sales forecasting using quotes [percentage sign and check] --- httemplate/edit/quotation.html | 2 +- httemplate/search/quotation.html | 8 +++++--- httemplate/view/quotation.html | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/quotation.html b/httemplate/edit/quotation.html index 437284094..43e815c09 100644 --- a/httemplate/edit/quotation.html +++ b/httemplate/edit/quotation.html @@ -16,7 +16,7 @@ { field=>'custnum', type=>'fixed-cust_main' }, { field=>'_date', type=>'fixed-date' }, { field=>'close_date', type=>'input-date-field' }, - { field=>'confidence', type=>'text', size=>6 }, + { field=>'confidence', type=>'text', size=>3, postfix=>'%' }, ($can_disable ? { field=>'disabled', type=>'checkbox', value=>'Y'} : ()), ], #XXX some way to disable the "view all" diff --git a/httemplate/search/quotation.html b/httemplate/search/quotation.html index 16affeb02..f9b77b95f 100755 --- a/httemplate/search/quotation.html +++ b/httemplate/search/quotation.html @@ -29,9 +29,11 @@ sub { my $cust_main = shift->cust_main; $cust_main ? encode_entities($cust_main->name) : ''; }, - 'confidence', - sub { my $quot = shift; - $quot->close_date ? time2str('%b %d %Y', $quot->close_date) : ''; + sub { my $quotation = shift; + length($quotation->confidence) ? $quotation->confidence . '%' : ''; + }, + sub { my $quotation = shift; + $quotation->close_date ? time2str('%b %d %Y', $quotation->close_date) : ''; }, #\&FS::UI::Web::cust_fields, ], diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 484bedd04..5646fb973 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -98,7 +98,7 @@ function areyousure(href, message) { % } % if (length($confidence)) { -Confidence:<% $confidence %> +Confidence:<% $confidence %>% % } % } -- cgit v1.2.1