From 32834b6e8a92ca3ec0bbf58075956a7d0edca79a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 16 Sep 2014 06:42:10 -0700 Subject: [PATCH] convert prospects to customers via quotations, RT#20688 --- httemplate/edit/process/quotation_convert.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 httemplate/edit/process/quotation_convert.html diff --git a/httemplate/edit/process/quotation_convert.html b/httemplate/edit/process/quotation_convert.html new file mode 100644 index 000000000..b387d0607 --- /dev/null +++ b/httemplate/edit/process/quotation_convert.html @@ -0,0 +1,17 @@ +<% $cgi->redirect(popurl(3). 'view/cust_main.cgi?'. $cust_main->custnum ) %> +<%init> + +#my $curuser = $FS::CurrentUser::CurrentUser; +#die "access denied" unless $curuser->access_right('Edit customer'); + +#my $conf = new FS::Conf; + +my $quotation = qsearchs( 'quotation' => { + quotationnum => scalar( $cgi->param('quotationnum') ), +} ) or die 'unknown quotationnum'; + +my $cust_main = $quotation->convert_cust_main; +errorpage($cust_main) unless ref($cust_main);# eq 'FS::cust_main'; + + + -- 2.11.0