fix: restrict application linking for reimbursement drafts
This commit is contained in:
@@ -254,7 +254,7 @@ test('guided reimbursement requires application selection for travel and enterta
|
||||
reason: '客户招待沟通项目',
|
||||
location: '武汉',
|
||||
amount: 600,
|
||||
status: 'submitted',
|
||||
status: 'approved',
|
||||
created_at: '2026-05-21T08:00:00Z'
|
||||
},
|
||||
{
|
||||
@@ -265,6 +265,44 @@ test('guided reimbursement requires application selection for travel and enterta
|
||||
reason: '草稿出差申请',
|
||||
status: 'draft'
|
||||
},
|
||||
{
|
||||
id: 'app-submitted',
|
||||
claim_no: 'AP-202605-005',
|
||||
employee_name: '张小青',
|
||||
expense_type: 'travel_application',
|
||||
reason: '审批中的出差申请',
|
||||
status: 'submitted'
|
||||
},
|
||||
{
|
||||
id: 'app-archived-stale-key',
|
||||
claim_no: 'AP-202605-007',
|
||||
employee_name: '张小青',
|
||||
expense_type: 'travel_application',
|
||||
reason: '已归档申请单',
|
||||
status: 'archived',
|
||||
approvalKey: 'completed'
|
||||
},
|
||||
{
|
||||
id: 'app-linked',
|
||||
claim_no: 'AP-202605-006',
|
||||
employee_name: '张小青',
|
||||
expense_type: 'travel_application',
|
||||
reason: '已生成报销草稿的出差申请',
|
||||
status: 'approved'
|
||||
},
|
||||
{
|
||||
id: 're-linked-draft',
|
||||
claim_no: 'RE-202605-006',
|
||||
employee_name: '张小青',
|
||||
expense_type: 'travel',
|
||||
reason: '已关联申请单的报销草稿',
|
||||
status: 'draft',
|
||||
risk_flags_json: [{
|
||||
source: 'application_link',
|
||||
application_claim_id: 'app-linked',
|
||||
application_claim_no: 'AP-202605-006'
|
||||
}]
|
||||
},
|
||||
{
|
||||
id: 'app-other-user',
|
||||
claim_no: 'AP-202605-004',
|
||||
|
||||
Reference in New Issue
Block a user