diff --git a/app/Http/Controllers/Barobill/EaccountController.php b/app/Http/Controllers/Barobill/EaccountController.php index cebb14fd..e6d73b31 100644 --- a/app/Http/Controllers/Barobill/EaccountController.php +++ b/app/Http/Controllers/Barobill/EaccountController.php @@ -442,7 +442,8 @@ private function parseTransactionLogs($resultData, string $defaultBankName = '', 'balance' => $balance, 'balanceFormatted' => number_format($balance), 'summary' => $fullSummary, - 'cast' => $log->AccountName ?? $log->Cast ?? '', + // 저장된 상대계좌예금주명 우선 사용 (직접 입력 가능) + 'cast' => $savedItem?->cast ?? '', 'memo' => $log->Memo ?? '', 'transOffice' => $log->TransOffice ?? '', // 저장된 계정과목 정보 병합 @@ -709,6 +710,7 @@ public function exportExcel(Request $request): StreamedResponse|JsonResponse '입금', '출금', '잔액', + '취급점', '상대계좌예금주명', '계정과목코드', '계정과목명' @@ -736,6 +738,7 @@ public function exportExcel(Request $request): StreamedResponse|JsonResponse $trans->deposit, $trans->withdraw, $trans->balance, + $trans->trans_office, $trans->cast, $trans->account_code, $trans->account_name diff --git a/resources/views/barobill/eaccount/index.blade.php b/resources/views/barobill/eaccount/index.blade.php index 11849cc1..c5488018 100644 --- a/resources/views/barobill/eaccount/index.blade.php +++ b/resources/views/barobill/eaccount/index.blade.php @@ -180,6 +180,7 @@ className="w-full px-2 py-1 text-xs border border-stone-200 rounded focus:ring-2 totalCount, accountCodes, onAccountCodeChange, + onCastChange, onSave, onExport, saving, @@ -285,14 +286,15 @@ className="flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-l 입금 출금 잔액 - 상대계좌예금주명 + 취급점 + 상대계좌예금주명 계정과목 {logs.length === 0 ? ( - + 해당 기간에 조회된 입출금 내역이 없습니다. @@ -321,8 +323,17 @@ className="flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-l {log.balanceFormatted}원 - - {log.cast || '-'} + + {log.transOffice || '-'} + + + onCastChange(index, e.target.value)} + placeholder="예금주명 입력" + />