fix(tahesab): show missing docs and create local table if absent

Pending list was empty because a missing tahesab table hid unsynced orders and charges. Create the table when needed and keep customer on each row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-02 21:51:21 +03:30
co-authored by Cursor
parent ad12de87c7
commit bb52e4c35a
3 changed files with 136 additions and 65 deletions
@@ -45,6 +45,7 @@ class TahesabController extends Controller
public function table(Request $request)
{
app(TahesabSyncService::class)->ensureLocalTable();
if (! Schema::hasTable('tahesab')) {
return response()->json([]);
}