1.1 KiB
1.1 KiB
Reimbursement Reference
Primary fact source: docs/报销发票附件规则.md.
Checks Before Editing
- PC and mobile must have the same business capability.
- Ordinary users should see "添加发票", not "绑定整单", "不绑定明细", "发票池", or "ERP 同步".
- Invoice constraints belong on the server; frontend restrictions are only convenience.
- Attachments are supporting materials and must not enter invoice OCR or invoice dedup.
Backend Hotspots
server/src/routes/invoicePool.jsserver/src/routes/invoicePool/read.jsserver/src/jobs/ocrJob.jsserver/src/services/invoiceGovernance.jsserver/src/routes/reimbursements.jsserver/prisma/schema.prisma
Frontend Hotspots
client/src/pages/ReimbursementDetailPage.tsxclient/src/pages/MobileReimbursementDetailPage.tsxclient/src/pages/InvoicePoolPage.tsxclient/src/api/invoicePool.tsclient/src/api/reimbursements.ts
Minimum Tests
- Invoice upload/dedup tests.
- OCR job duplicate handling tests.
- Reimbursement invoice bind/unbind tests.
- Attachment upload/download/delete tests.
- PC and mobile Playwright flow.