Add province-scoped branches for loan paid letters and harden loans.user_id.

Expose GET /loan-paid-off-letters/branches?province_id= for form pickers, require loans.user_id, and proxy the Vite frontend under /online/.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-12 19:12:49 +05:00
parent 1987d4f596
commit 5f6ddc5217
14 changed files with 172 additions and 343 deletions

View File

@@ -533,7 +533,7 @@ INSERT INTO loan_orders (
INSERT INTO loans (user_id, passport_serie, passport_id, account_number) VALUES
(2, 'I-AG', '778899', 'ACC-LOAN-10001'),
(3, 'I-MR', '998877', 'ACC-LOAN-10002'),
(NULL, 'I-AG', '101010', 'ACC-LOAN-10003'),
(1, 'I-AG', '101010', 'ACC-LOAN-10003'),
(2, 'I-AG', '303030', 'ACC-LOAN-10004');
-- ---------------------------------------------------------------------------