fix: [approval] 지출결의서 출금계좌 목록 테넌트 필터링 수정
- BankAccount 글로벌 스코프 의존 → 명시적 tenant_id 필터로 변경 - CorporateCard와 동일한 패턴으로 통일
This commit is contained in:
@@ -128,8 +128,8 @@ private function getCardAndAccountData(): array
|
||||
->select('id', 'card_name', 'card_company', 'card_number', 'card_holder_name')
|
||||
->get();
|
||||
|
||||
// BankAccount는 BelongsToTenant 글로벌 스코프가 자동 적용됨
|
||||
$accounts = BankAccount::active()
|
||||
$accounts = BankAccount::where('tenant_id', $tenantId)
|
||||
->active()
|
||||
->ordered()
|
||||
->select('id', 'bank_name', 'account_number', 'account_holder', 'is_primary')
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user