From: Mark Wells Date: Mon, 27 Apr 2015 07:04:37 +0000 (-0700) Subject: disable quotation after ordering, #33852 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e2f23d0d3110ccff9dadf523d150a0d747130b43 disable quotation after ordering, #33852 --- diff --git a/FS/FS/ClientAPI/MyAccount/quotation.pm b/FS/FS/ClientAPI/MyAccount/quotation.pm index f3067f14e..f19071aa8 100644 --- a/FS/FS/ClientAPI/MyAccount/quotation.pm +++ b/FS/FS/ClientAPI/MyAccount/quotation.pm @@ -58,7 +58,6 @@ Returns a hashref describing the current quotation, containing: =cut -use Data::Dumper; sub quotation_info { my $p = shift; @@ -84,7 +83,6 @@ sub quotation_info { 'detail_items' => \@items } ]; - warn Dumper $sections; return { 'error' => '', 'sections' => $sections } } @@ -225,6 +223,9 @@ sub quotation_order { my $error = $quotation->order; + $quotation->set('disabled' => 'Y'); + $error ||= $quotation->replace; + return { 'error' => $error }; }