diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 19:47:25 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 19:47:25 -0800 |
commit | 6d3897cc5511c4f39bf6f9c02432ba7e600bfe74 (patch) | |
tree | 98a6851ec74adc0f2bf1afbdb4dcc8cbaa0a9a8c /httemplate/misc/disable-quotation.html | |
parent | d018752aae8c18763a40604bd2ebb1653a7ae17f (diff) |
what uncommited changes?
Diffstat (limited to 'httemplate/misc/disable-quotation.html')
-rw-r--r-- | httemplate/misc/disable-quotation.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/httemplate/misc/disable-quotation.html b/httemplate/misc/disable-quotation.html new file mode 100644 index 000000000..a6c48299f --- /dev/null +++ b/httemplate/misc/disable-quotation.html @@ -0,0 +1,21 @@ +%if ( $error ) { +% errorpage($error); +%} else { +<% $cgi->redirect($url) %> +%} +<%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->disable; + +my( $label, $url ) = $quotation->cust_or_prospect_label_link( popurl(2) ); + +</%init> |