Merge branch 'master' of ssh://git.freeside.biz/home/git/freeside
[freeside.git] / httemplate / misc / enable-quotation.html
1 %if ( $error ) {
2 %  errorpage($error);
3 %} else {
4 <% $cgi->redirect(popurl(2)."view/quotation.html?quotationnum=$quotationnum") %>
5 %}
6 <%init>
7
8 die "access deined"
9   unless $FS::CurrentUser::CurrentUser->access_right('Disable quotation');
10
11 $cgi->param('quotationnum') =~ /^(\d+)$/ or die 'illegal quotationnum';
12 my $quotationnum = $1;
13
14 my $quotation =
15   qsearchs('quotation', { 'quotationnum' => $quotationnum } );
16
17 my $error = $quotation->enable;
18
19 #my( $label, $url ) = $quotation->cust_or_prospect_label_link( popurl(2) );
20
21 </%init>