From: Mark Wells Date: Mon, 27 Apr 2015 07:05:46 +0000 (-0700) Subject: disable quotation after ordering, #33852 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=911b5f2429377b0b989e8a10e9971b2463e554a7 disable quotation after ordering, #33852 --- diff --git a/FS/FS/ClientAPI/MyAccount/quotation.pm b/FS/FS/ClientAPI/MyAccount/quotation.pm index ce2debdde..787a0997c 100644 --- a/FS/FS/ClientAPI/MyAccount/quotation.pm +++ b/FS/FS/ClientAPI/MyAccount/quotation.pm @@ -211,6 +211,8 @@ sub quotation_order { my $quotation = _quotation($session); my $error = $quotation->order; + $quotation->set('disabled' => 'Y'); + $error ||= $quotation->replace; return { 'error' => $error }; }