From 4d37a18baeaa76468435606207a4dfa54ebed85e Mon Sep 17 00:00:00 2001 From: "noah.lancien" Date: Thu, 6 Apr 2023 08:55:49 +0000 Subject: [PATCH] Updated ticket status when answer estimation is submitted --- app/Http/Controllers/Credit/EstimationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Credit/EstimationController.php b/app/Http/Controllers/Credit/EstimationController.php index 73083cf..4a66963 100644 --- a/app/Http/Controllers/Credit/EstimationController.php +++ b/app/Http/Controllers/Credit/EstimationController.php @@ -77,7 +77,7 @@ class EstimationController extends Controller /** @var \App\Models\Credit\Estimation */ $estimation = $ticket->estimation; if ($request->answer) { - $ticket->status = TicketStatus::toPlan(); + $ticket->status = TicketStatus::takenInAccount(); $estimation->status = EstimationStatus::accepted(); } else { $ticket->status = TicketStatus::archived();