feat(performance): 앞날 입력·계산식 칸·기간 합계 맨 위
- 매출 수동 입력·광고비 날짜 칸과 엑셀·광고 보고서 업로드에서 오늘 이후 날짜 허용 - 이번달 등 일자별 표의 기간 합계 행을 제목 행 바로 아래로 - 날짜 칸에 = 없이 1000+2000 계산식 입력(formula.parse_amount), 식은 마이그레이션 008 formula 열에 저장해 파랑 굵은 숫자·다시 누르면 식 - 광고비 탭 직접 입력값은 굵게 해제(굵게는 계산식만) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -252,6 +252,22 @@ docker exec postgres-db psql -U postgres -d performance_db -c "\dt perf_ad_*"
|
||||
되돌리기(광고 API 인증정보·상태만 사라짐, 가져온 광고비는 perf_ad_spend 에 남음):
|
||||
`docker exec postgres-db psql -U postgres -d performance_db -c "DROP TABLE perf_ad_source_status, perf_ad_credentials;"`
|
||||
|
||||
## 실적 날짜 칸 계산식 마이그레이션 (performance_db 008)
|
||||
|
||||
008은 `perf_manual_sales.formula`·`perf_ad_spend.formula` 열 두 개만 추가한다(기존 행·값 그대로, 다시 실행 가능). 002·005 다음에 적용한다.
|
||||
날짜 칸에 `1000+2000` 같은 계산식을 넣으면 금액은 계산 결과로 저장되고 식은 이 열에 남는다(다시 누르면 식, 파랑 굵은 숫자).
|
||||
미적용이어도 앱은 그대로 동작한다 — 계산 결과만 저장되고 식·굵은 표시는 남지 않는다.
|
||||
|
||||
```bash
|
||||
cd /opt/www/main
|
||||
docker exec postgres-db pg_dump -U postgres performance_db > ~/performance_db_before_008_$(date +%Y%m%d%H%M).sql
|
||||
docker exec -i postgres-db psql -v ON_ERROR_STOP=1 -U postgres -d performance_db < scripts/sql/performance_db_008_cell_formula.sql
|
||||
docker exec postgres-db psql -U postgres -d performance_db -c "\d perf_ad_spend" -c "\d perf_manual_sales"
|
||||
```
|
||||
|
||||
되돌리기(계산식 표시만 사라짐, 금액 그대로):
|
||||
`docker exec postgres-db psql -U postgres -d performance_db -c "ALTER TABLE perf_manual_sales DROP COLUMN formula; ALTER TABLE perf_ad_spend DROP COLUMN formula;"`
|
||||
|
||||
## 회의록 작업 등록 표 — 작업 칸 마이그레이션 (026)
|
||||
|
||||
026은 `goal_meeting_tasks.parent_task_id` 열만 추가한다(기존 값 그대로, 다시 실행 가능). 025 뒤에 적용한다. 미적용이면 작업 칸을 고를 때만 503 안내.
|
||||
|
||||
Reference in New Issue
Block a user