diff options
author | Mark Wells <mark@freeside.biz> | 2015-04-27 00:04:37 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-04-27 00:06:18 -0700 |
commit | e2f23d0d3110ccff9dadf523d150a0d747130b43 (patch) | |
tree | e70667a364ea5fbc1051c4398c964f303b402269 | |
parent | 67c00bb4c9309c1ae314aa5b8657273f24539270 (diff) |
disable quotation after ordering, #33852
-rw-r--r-- | FS/FS/ClientAPI/MyAccount/quotation.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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 }; } |