feat: [journal] 일반전표입력 테이블에 전표번호 컬럼 추가
- 날짜 다음에 전표번호(entry_no) 컬럼 추가 - 운영서버에서 전표 식별/비교 용이하도록 개선
This commit is contained in:
@@ -1259,6 +1259,7 @@ className={`px-2.5 py-1 text-xs rounded-full font-medium transition-colors ${vie
|
||||
<thead>
|
||||
<tr className="bg-stone-50 border-b border-stone-200">
|
||||
<th className="px-3 py-3 text-left text-sm font-semibold text-stone-600 w-[90px]">날짜</th>
|
||||
<th className="px-3 py-3 text-left text-sm font-semibold text-stone-600 w-[150px]">전표번호</th>
|
||||
<th className="px-3 py-3 text-left text-sm font-semibold text-stone-600">적요</th>
|
||||
<th className="px-3 py-3 text-right text-sm font-semibold text-stone-600 w-[110px]">입금</th>
|
||||
<th className="px-3 py-3 text-right text-sm font-semibold text-stone-600 w-[110px]">출금</th>
|
||||
@@ -1276,6 +1277,9 @@ className={`px-2.5 py-1 text-xs rounded-full font-medium transition-colors ${vie
|
||||
<div>{formatDate(row.date)}</div>
|
||||
{row.time && <div className="text-stone-400 text-xs">{formatTime(row.time)}</div>}
|
||||
</td>
|
||||
<td className="px-3 py-2.5 text-stone-500 text-xs font-mono whitespace-nowrap">
|
||||
{row.entryNo || ''}
|
||||
</td>
|
||||
<td className="px-3 py-2.5 text-stone-800 text-sm max-w-[220px]">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<span className={`w-2 h-2 rounded-full flex-shrink-0 ${row.type === 'manual' ? 'bg-purple-500' : row.type === 'card' ? 'bg-orange-500' : 'bg-blue-500'}`}></span>
|
||||
@@ -1342,7 +1346,7 @@ className="p-1 text-stone-300 group-hover:text-emerald-500 hover:bg-emerald-50 r
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr className="bg-stone-50 border-t-2 border-stone-300">
|
||||
<td colSpan={2} className="px-3 py-2.5 text-sm text-stone-500 font-medium">합계 ({filtered.length}건)</td>
|
||||
<td colSpan={3} className="px-3 py-2.5 text-sm text-stone-500 font-medium">합계 ({filtered.length}건)</td>
|
||||
<td className="px-3 py-2.5 text-right font-bold text-blue-700 text-sm">{formatCurrency(filtered.reduce((s, r) => s + r.deposit, 0))}</td>
|
||||
<td className="px-3 py-2.5 text-right font-bold text-red-700 text-sm">{formatCurrency(filtered.reduce((s, r) => s + r.withdraw, 0))}</td>
|
||||
<td></td>
|
||||
|
||||
Reference in New Issue
Block a user