X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FClientAPI%2FMyAccount%2Fquotation.pm;h=f19071aa81f2d8574bf06b42084e7c8ed7cff4dc;hp=f3067f14ebddcaf250da9bea0e75f276956f8ad1;hb=e2f23d0d3110ccff9dadf523d150a0d747130b43;hpb=67c00bb4c9309c1ae314aa5b8657273f24539270 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 }; }