feat: 매입관리 품의서/지출결의서 연동 기능 추가
- purchases 테이블에 approval_id 컬럼 추가 (마이그레이션) - Purchase 모델에 approval 관계 정의 - PurchaseService에서 approval 데이터 eager loading 구현 - FormRequest에 approval_id 유효성 검증 추가 - Swagger 문서에 approval 관련 스키마 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@ public function rules(): array
|
||||
'purchase_type' => ['nullable', 'string', 'max:50'],
|
||||
'description' => ['nullable', 'string', 'max:1000'],
|
||||
'withdrawal_id' => ['nullable', 'integer', 'exists:withdrawals,id'],
|
||||
'approval_id' => ['nullable', 'integer', 'exists:approvals,id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ public function rules(): array
|
||||
'purchase_type' => ['nullable', 'string', 'max:50'],
|
||||
'description' => ['nullable', 'string', 'max:1000'],
|
||||
'withdrawal_id' => ['nullable', 'integer', 'exists:withdrawals,id'],
|
||||
'approval_id' => ['nullable', 'integer', 'exists:approvals,id'],
|
||||
'tax_invoice_received' => ['sometimes', 'boolean'],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user