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
+1
View File
@@ -249,6 +249,7 @@ Route::middleware('auth:user')->group(function (){
Route::post('tahesab/sync-all-pending', [TahesabController::class, 'syncAllPending']);
Route::post('tahesab/doc-sync/start', [TahesabController::class, 'startDocSync']);
Route::post('tahesab/doc-sync/stop', [TahesabController::class, 'stopDocSync']);
Route::post('tahesab/doc-sync/reset-local', [TahesabController::class, 'resetLocalDocSync']);
Route::post('tahesab/customer-sync/outbound/start', [TahesabController::class, 'startCustomerOutbound']);
Route::post('tahesab/customer-sync/inbound/start', [TahesabController::class, 'startCustomerInbound']);
Route::get('tahesab/customer-sync/status', [TahesabController::class, 'customerSyncStatus']);