Add global admin checks list and deepen check notification links.

Expose GET /admin/checks with order context, and point admin check alerts to the per-order checks page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-09 16:17:51 +03:30
co-authored by Cursor
parent d4aaa8e997
commit fd187ea2ee
11 changed files with 119 additions and 6 deletions
+25
View File
@@ -4,6 +4,31 @@ import { UpdateCheckStatusDto } from './dto/check.dto';
export declare class ChecksController {
private readonly checksService;
constructor(checksService: ChecksService);
findAll(status?: string): Promise<{
orderNumber: string;
customerName: string;
orderStatus: import("@prisma/client").$Enums.OrderStatus;
settlementType: import("@prisma/client").$Enums.SettlementType | null;
id: string;
orderId: string;
row: number;
amount: number;
dueDate: string;
sayadId: string;
checkNumber: string | undefined;
ownerNationalId: string | undefined;
ownerFirstName: string | undefined;
ownerLastName: string | undefined;
bankName: string;
branchName: string | undefined;
frontImage: string | undefined;
backImage: string | undefined;
notes: string | undefined;
mode: string;
status: import("@prisma/client").$Enums.CheckStatus;
createdAt: string;
updatedAt: string;
}[]>;
findByOrder(orderId: string): Promise<{
id: string;
orderId: string;