fix:부가세 → 세액 용어 전체 변경

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-05 15:55:32 +09:00
parent fbfedf03d7
commit 02d8d64bb2

View File

@@ -361,7 +361,7 @@ className={`px-3 py-1.5 text-xs cursor-pointer ${
};
}));
} else {
// 새 분개: 원본의 공급가액/부가세로 1개 행 생성
// 새 분개: 원본의 공급가액/세로 1개 행 생성
const origSupply = log.effectiveSupplyAmount ?? ((log.approvalAmount || 0) - (log.tax || 0));
const origTax = log.effectiveTax ?? (log.tax || 0);
setSplits([{
@@ -381,7 +381,7 @@ className={`px-3 py-1.5 text-xs cursor-pointer ${
if (!isOpen || !log) return null;
const originalAmount = log.approvalAmount || 0;
// 합계금액 = sum(공급가액 + 부가세)
// 합계금액 = sum(공급가액 + 세)
const splitTotal = splits.reduce((sum, s) => sum + (parseFloat(s.supplyAmount) || 0) + (parseFloat(s.tax) || 0), 0);
const isValid = Math.abs(originalAmount - splitTotal) < 0.01;
@@ -472,7 +472,7 @@ className={`px-3 py-1.5 text-xs cursor-pointer ${
<span className="font-medium">{formatCurrency(log.effectiveSupplyAmount ?? ((log.approvalAmount || 0) - (log.tax || 0)))}</span>
</div>
<div className="flex justify-between mb-1">
<span className="text-stone-500">부가</span>
<span className="text-stone-500"></span>
<span className="font-medium">{formatCurrency(log.effectiveTax ?? (log.tax || 0))}</span>
</div>
<div className="flex justify-between">
@@ -500,7 +500,7 @@ className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm text-righ
/>
</div>
<div>
<label className="block text-xs text-stone-500 mb-1">부가</label>
<label className="block text-xs text-stone-500 mb-1"></label>
<input
type="text"
value={formatAmountInput(split.tax)}
@@ -915,9 +915,9 @@ className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm text-righ
placeholder="0"
/>
</div>
{/* 부가세 */}
{/* 세 */}
<div>
<label className="block text-sm font-medium text-stone-700 mb-1">부가 <span className="text-red-500">*</span></label>
<label className="block text-sm font-medium text-stone-700 mb-1"> <span className="text-red-500">*</span></label>
<input
type="text"
value={formatCurrency(form.tax)}
@@ -1017,7 +1017,7 @@ className="w-full px-3 py-2 border border-stone-200 rounded-lg text-sm focus:rin
{/* 합계 금액 표시 */}
<div className="mt-4 p-3 bg-purple-50 rounded-lg">
<div className="flex justify-between text-sm">
<span className="text-stone-600">합계 금액 (공급가액 + 부가)</span>
<span className="text-stone-600">합계 금액 (공급가액 + )</span>
<span className="font-bold text-purple-700">
{new Intl.NumberFormat('ko-KR').format((parseFloat(form.approval_amount) || 0) + (parseFloat(form.tax) || 0))}
</span>
@@ -1193,7 +1193,7 @@ className="flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-l
<th className="px-4 py-4 bg-stone-50 min-w-[250px]">내역</th>
<th className="px-4 py-4 text-right bg-stone-50">합계금액</th>
<th className="px-4 py-4 text-right bg-stone-50">공급가액</th>
<th className="px-4 py-4 text-right bg-stone-50">부가</th>
<th className="px-4 py-4 text-right bg-stone-50"></th>
<th className="px-4 py-4 bg-stone-50 min-w-[150px]">계정과목</th>
<th className="px-3 py-4 bg-stone-50 w-16">관리</th>
</tr>
@@ -2041,7 +2041,7 @@ className="p-1 text-red-500 hover:bg-red-50 rounded transition-colors"
color="red"
/>
<StatCard
title="부가세 합계"
title=" 합계"
value={formatCurrency(summary.totalTax)}
subtext="조회기간 합계"
icon={<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"/></svg>}