fix(inbounds): 입고 등록 버튼 — 발주요청/입고완료 상태에도 노출
Deploy momo-erp / deploy (push) Successful in 1m54s

이전: STATUS === 'PAID' || 'PARTIAL' 일 때만 [입고 등록] 버튼 표시
지금: REQUESTED + PARTIAL + PAID + RECEIVED 모두 표시.
- 입금 의존성 해제(앞선 커밋)와 일관성 맞춤.
- RECEIVED 상태에서도 라인 보정 입력이 가능하도록 버튼 유지 + '입고 완료' 배지 같이 표시.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
chpark
2026-05-20 15:31:38 +09:00
parent 1eba9aab32
commit 6ddeca316c
+12 -10
View File
@@ -293,16 +293,18 @@ export default function InboundsPage() {
<div className="bg-white border border-slate-200 rounded-xl overflow-hidden flex flex-col">
<div className="px-3 py-2 bg-slate-50 border-b border-slate-200 text-xs font-semibold text-slate-600 flex items-center justify-between">
<span> </span>
{detail && (detail.proc.STATUS === "PAID" || detail.proc.STATUS === "PARTIAL") && (
<button onClick={submitInbound} disabled={busy}
className="inline-flex items-center gap-1 h-8 px-3 rounded bg-emerald-700 text-white text-xs font-bold hover:bg-emerald-800 disabled:opacity-50">
<Save size={12} />
</button>
)}
{detail && detail.proc.STATUS === "RECEIVED" && (
<span className="text-[11px] text-emerald-700 inline-flex items-center gap-1">
<CheckCircle2 size={12} />
</span>
{detail && ["REQUESTED", "PARTIAL", "PAID", "RECEIVED"].includes(detail.proc.STATUS) && (
<div className="flex items-center gap-2">
{detail.proc.STATUS === "RECEIVED" && (
<span className="text-[11px] text-emerald-700 inline-flex items-center gap-1">
<CheckCircle2 size={12} />
</span>
)}
<button onClick={submitInbound} disabled={busy}
className="inline-flex items-center gap-1 h-8 px-3 rounded bg-emerald-700 text-white text-xs font-bold hover:bg-emerald-800 disabled:opacity-50">
<Save size={12} />
</button>
</div>
)}
</div>
<div className="flex-1 lg:overflow-auto p-4">