feat(tahesab): reset local success flags when remote docs were wiped
Clear tahesab_id on locally successful rows so they re-enter the send queue without touching panel customer codes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -743,6 +743,13 @@ class TahesabController extends Controller
|
||||
return response()->json($result);
|
||||
}
|
||||
|
||||
public function resetLocalDocSync()
|
||||
{
|
||||
$result = $this->sync()->resetLocalSyncedDocs();
|
||||
|
||||
return response()->json($result, ($result['ok'] ?? false) ? 200 : 422);
|
||||
}
|
||||
|
||||
public function startCustomerOutbound()
|
||||
{
|
||||
$result = app(TahesabDocSyncService::class)->startCustomerOutbound();
|
||||
|
||||
Reference in New Issue
Block a user