summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-04-27 00:05:46 -0700
committerMark Wells <mark@freeside.biz>2015-04-27 00:05:46 -0700
commit911b5f2429377b0b989e8a10e9971b2463e554a7 (patch)
tree790c4e41b16f143c83d7f9daa95ef48f50052cf5
parentc110da0da864245e47cae019b8a347367cc6430c (diff)
disable quotation after ordering, #33852
-rw-r--r--FS/FS/ClientAPI/MyAccount/quotation.pm2
1 files changed, 2 insertions, 0 deletions
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 };
}