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:
2026-09-03 13:43:16 +03:30
co-authored by Cursor
parent d65bbce791
commit 3b7db1eb72
4 changed files with 78 additions and 0 deletions
@@ -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();