fix: [finance] 계정코드 매핑 이미지 기준 재수정

- 204→25300(미지급금), 205→26200(미지급비용)
- 207→25400(예수금), 208→25500(부가세예수금)
- 826→83700(건물관리비), 253→30800(장기성지급어음)
- 501→45100(상품매출원가), 117→13500(부가세대급금)
- 201→25100(외상매입금)
- 801 대표이사→80100(임원급여), 나머지→80200(직원급여) 분기
This commit is contained in:
김보곤
2026-03-17 18:15:34 +09:00
parent e2f9d7d18e
commit ffbed199cb
8 changed files with 58 additions and 35 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' ? ['20400', '20500'] : [$account];
$accountCodes = $account === 'all' ? ['25300', '26200'] : [$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' ? ['20400', '20500'] : [$account];
$accountCodes = $account === 'all' ? ['25300', '26200'] : [$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' ? ['20400', '20500'] : [$account];
$accountCodes = $account === 'all' ? ['25300', '26200'] : [$account];
$query = JournalEntryLine::where('journal_entry_lines.tenant_id', $tenantId)
->whereIn('journal_entry_lines.account_code', $accountCodes)