feat(pnl): 「입력 필요」는 계약 체결부터 — 전자서명 완료 또는 서면계약 스캔본 등록 - #476
Merged
Merged
Conversation
지시로 기준을 바꾼다. 그 전에는 **특장사 수락** 시점이었다. 계약만 끝나도 세금계산서 준비는 시작되므로 앞당긴다. ## 무엇으로 보나 두 길(전자서명 완료 · 서면계약 스캔본 등록) 모두 계약 줄을 `COMPLETED` 로 남기고 체결 시각 (`completed_at`)을 적는다 — **그 줄 하나로 두 길을 함께 본다.**⚠️ 견적 상태(계약완료 이상)로 고르지 않는다. 상태는 배정 취소·거부·주문 삭제로 오가지만, **체결됐다는 사실**은 계약 줄에만 정확히 남는다. 서명 요청만 보낸 건(SENT)은 체결이 아니다. ## 순서 체결일이 오래된 것이 맨 위다(재계약이면 가장 이른 체결일). 관계 칸으로는 DB 가 정렬하지 못해 받아 온 뒤 줄 세운다. 목록의 날짜 표시도 「수락 …」 → 「계약 …」. ## 검사 · 전자서명이 끝나면 선다 · 서명 요청만 보낸 건은 아니다 · 계약 줄 없이 상태만 계약완료인 건도 아니다 · 서면계약 스캔본을 올려도 선다(체결일이 실린다) · 특장사 수락 여부와 상관없다(주문이 아예 없어도 선다) · 체결일이 오래된 것이 맨 위다 로컬 더미 스크립트도 체결된 계약 줄을 만들도록 고쳤다(전자서명·서면계약을 섞어서). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes 475
기준 변경
무엇으로 보나
두 길 모두 계약 줄(
purchase_contract)을COMPLETED로 남기고 체결 시각(completed_at)을 적는다 —그 줄 하나로 두 길을 함께 본다.
체결됐다는 사실은 계약 줄에만 정확히 남는다. 서명 요청만 보낸 건(
SENT)은 체결이 아니다.손익 탭 이전에 체결된 계약도 발행일이 안 적혀 있으면 모두 「입력 필요」에 선다.
처음 열면 목록이 꽤 길 수 있다(체결일 오래된 순이라 맨 위부터 처리하면 된다).
DB
변경 없음.
검증
🤖 Generated with Claude Code