[freeside-commits] branch FREESIDE_3_BRANCH updated. 6d3897cc5511c4f39bf6f9c02432ba7e600bfe74
Ivan
ivan at 420.am
Sun Jan 18 19:47:36 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 6d3897cc5511c4f39bf6f9c02432ba7e600bfe74 (commit)
from d018752aae8c18763a40604bd2ebb1653a7ae17f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6d3897cc5511c4f39bf6f9c02432ba7e600bfe74
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Jan 18 19:47:25 2015 -0800
what uncommited changes?
diff --git a/httemplate/misc/disable-quotation.html b/httemplate/misc/disable-quotation.html
new file mode 100644
index 0000000..a6c4829
--- /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>
diff --git a/httemplate/misc/enable-quotation.html b/httemplate/misc/enable-quotation.html
new file mode 100644
index 0000000..e5bb499
--- /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) );
+
+</%init>
-----------------------------------------------------------------------
Summary of changes:
httemplate/misc/disable-quotation.html | 21 +++++++++++++++++++++
httemplate/misc/enable-quotation.html | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 httemplate/misc/disable-quotation.html
create mode 100644 httemplate/misc/enable-quotation.html
More information about the freeside-commits
mailing list