feat(tahesab): pump pending documents slowly from admin, not schedule

Send leftover orders and charges one-by-one with a gap so Tahesab is not rate-limited, skip already-synced rows, and expose start/stop plus progress on existing status APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-02 20:48:14 +03:30
co-authored by Cursor
parent 92d8f2e9b3
commit c5fd3b45fe
5 changed files with 531 additions and 23 deletions
+2
View File
@@ -247,6 +247,8 @@ Route::middleware('auth:user')->group(function (){
Route::get('tahesab/pending-docs', [TahesabController::class, 'pendingDocs']);
Route::post('tahesab/sync-one', [TahesabController::class, 'syncOne']);
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::get('tahesab/customer-sync/status', [TahesabController::class, 'customerSyncStatus']);
Route::post('tahesab/customer-sync/panel-to-tahesab', [TahesabController::class, 'syncPanelToTahesab']);
Route::post('tahesab/customer-sync/import-from-tahesab', [TahesabController::class, 'importFromTahesab']);