wip
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user