disable quotation after ordering, #33852
authorMark Wells <mark@freeside.biz>
Mon, 27 Apr 2015 07:05:46 +0000 (00:05 -0700)
committerMark Wells <mark@freeside.biz>
Mon, 27 Apr 2015 07:05:46 +0000 (00:05 -0700)
FS/FS/ClientAPI/MyAccount/quotation.pm

index ce2debd..787a099 100644 (file)
@@ -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 };
 }