From 85c78d955fbc2fd6c3991156b387d37c185b9f64 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 18 Jan 2015 14:03:07 -0800 Subject: disable quotations, RT#20688, RT#22232 --- httemplate/misc/enable-quotation.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 httemplate/misc/enable-quotation.html (limited to 'httemplate/misc/enable-quotation.html') diff --git a/httemplate/misc/enable-quotation.html b/httemplate/misc/enable-quotation.html new file mode 100644 index 000000000..e5bb49990 --- /dev/null +++ b/httemplate/misc/enable-quotation.html @@ -0,0 +1,21 @@ +%if ( $error ) { +% errorpage($error); +%} else { +<% $cgi->redirect(popurl(2)."view/quotation.html?quotationnum=$quotationnum") %> +%} +<%init> + +die "access deined" + unless $FS::CurrentUser::CurrentUser->access_right('Disable quotation'); + +$cgi->param('quotationnum') =~ /^(\d+)$/ or die 'illegal quotationnum'; +my $quotationnum = $1; + +my $quotation = + qsearchs('quotation', { 'quotationnum' => $quotationnum } ); + +my $error = $quotation->enable; + +#my( $label, $url ) = $quotation->cust_or_prospect_label_link( popurl(2) ); + + -- cgit v1.2.1