forked from wangziqi/gongxue-base
feat: refine admin forms, attendance and finance workflows
Squash merge PR #23. Included changes: - complete occupancy check-in required fields/default payload - improve responsive admin management pages - fix attendance edge cases and attendance period config - refine wallet/finance-related workflow handling Checks: - npm run typecheck -w apps/admin - npm run typecheck -w apps/server
This commit is contained in:
@@ -3,9 +3,7 @@ import { buildDepositStudentOption, buildDepositStudentOptions } from './deposit
|
||||
|
||||
describe('deposit student option', () => {
|
||||
it('uses the student number as the non-sensitive identifier', () => {
|
||||
expect(
|
||||
buildDepositStudentOption({ id: 23, name: '张三', studentNo: 'S2026001' }),
|
||||
).toEqual({
|
||||
expect(buildDepositStudentOption({ id: 23, name: '张三', studentNo: 'S2026001' })).toEqual({
|
||||
value: 23,
|
||||
label: '张三 (S2026001)',
|
||||
});
|
||||
@@ -28,7 +26,14 @@ describe('deposit student option', () => {
|
||||
});
|
||||
|
||||
it('includes room type when available', () => {
|
||||
expect(buildDepositStudentOption({ id: 23, name: '张三', studentNo: 'S2026001', roomType: '四人间' })).toEqual({
|
||||
expect(
|
||||
buildDepositStudentOption({
|
||||
id: 23,
|
||||
name: '张三',
|
||||
studentNo: 'S2026001',
|
||||
roomType: '四人间',
|
||||
}),
|
||||
).toEqual({
|
||||
value: 23,
|
||||
label: '张三 (S2026001) - 四人间',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user