From 03c12b4dabfcaabc218f39ee13557edebc13931d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 18 Jan 2015 18:13:16 -0800 Subject: email quotations, RT#22232, RT#20688 --- httemplate/misc/process/email-quotation.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 httemplate/misc/process/email-quotation.html (limited to 'httemplate/misc/process') diff --git a/httemplate/misc/process/email-quotation.html b/httemplate/misc/process/email-quotation.html new file mode 100755 index 000000000..e7fef4a85 --- /dev/null +++ b/httemplate/misc/process/email-quotation.html @@ -0,0 +1,20 @@ +<& /elements/header-popup.html, mt('Email sent') &> + +<& /elements/footer-popup.html &> +<%init> + +#die "access denied" +# unless $FS::CurrentUser::CurrentUser->access_right('Generate quotation'); #separate rights to generate vs send/email? + +$cgi->param('quotationnum') =~ /^(\d+)$/ or die "Illegal quotationnum"; +my $quotationnum = $1; + +#XXX agent-virt +my $quotation = qsearchs('quotation', { 'quotationnum'=>$quotationnum }) + or die "Unknown quotationnum"; + +$quotation->email({ 'to' => [ $cgi->param('emailaddress') ] }); + + -- cgit v1.2.1