From c0dd8f269a76d774bbd62b7f54713cca6b3656a3 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 15:35:26 +0500 Subject: [PATCH] wip --- app/Nova/Actions/Sber/SyncWithSystem.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index 15685ac..f3d4e90 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -60,6 +60,16 @@ class SyncWithSystem extends Action $success = $systemResponse['errCode'] == 0; + if ($success) { + $orderItem->update([ + 'synced_with_system' => true, + ]); + } else { + $orderItem->update([ + 'synced_with_system' => false, + ]); + } + return Action::modal('modal-response', [ 'html' => $success ? "Success" : "Fail", 'title' => $success ? "Success" : "Fail",