From: Ivan Kohler Date: Mon, 19 Jan 2015 03:47:25 +0000 (-0800) Subject: what uncommited changes? X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6d3897cc5511c4f39bf6f9c02432ba7e600bfe74 what uncommited changes? --- 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) ); + + 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) ); + +