fix: [finance] 미수금/미지급금 계정코드 5자리로 수정

- 외상매출금 108 → 10800
- 미지급금 204 → 20400
- 미지급비용 205 → 20500
This commit is contained in:
김보곤
2026-03-17 16:13:19 +09:00
parent 7bfa3cc75b
commit 5de768b7f6
4 changed files with 19 additions and 19 deletions

View File

@@ -196,7 +196,7 @@ public function integrated(Request $request): JsonResponse
$account = $request->input('account', 'all');
$vendor = $request->input('vendor', '');
$accountCodes = $account === 'all' ? ['204', '205'] : [$account];
$accountCodes = $account === 'all' ? ['20400', '20500'] : [$account];
// 0. 이월 잔액 계산 (startDate 이전의 누적 잔액)
$priorBalanceMap = [];
@@ -431,7 +431,7 @@ public function hometaxPayables(Request $request): JsonResponse
$endDate = $request->input('endDate', date('Y-12-31'));
$account = $request->input('account', 'all');
$accountCodes = $account === 'all' ? ['204', '205'] : [$account];
$accountCodes = $account === 'all' ? ['20400', '20500'] : [$account];
$items = HometaxInvoiceJournal::where('tenant_id', $tenantId)
->whereIn('account_code', $accountCodes)
@@ -465,7 +465,7 @@ public function journalPayables(Request $request): JsonResponse
$account = $request->input('account', 'all');
$dcType = $request->input('dcType', 'all');
$accountCodes = $account === 'all' ? ['204', '205'] : [$account];
$accountCodes = $account === 'all' ? ['20400', '20500'] : [$account];
$query = JournalEntryLine::where('journal_entry_lines.tenant_id', $tenantId)
->whereIn('journal_entry_lines.account_code', $accountCodes)