- store/update 시 같은 category의 다른 템플릿에 이미 연결된 품목이 있으면 422 에러 반환
- duplicate 시 linked_item_ids, linked_process_id, linkValues 복사하지 않음
- 레거시(linked_item_ids)와 신규(template_link_values) 양쪽 경로 모두 검증
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- store/bulkStore 메소드에 중복 휴일 등록 방지 로직 추가
- 년도별 일괄 삭제 기능 (destroyByYear) 추가
- 휴일관리 UI에 년도 전체 삭제 버튼 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- latestBalances API 추가 (barobill_bank_transactions 테이블)
- 바로빌 GetBankAccountEx 대신 로컬 DB 최신 잔액 사용
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- DocumentTemplateApiController: 연결 품목 ID로 품목명 조회
- table.blade.php: 연결 품목 컬럼 추가 (최대 3개 표시 + 더보기)
- index.blade.php: 카테고리 필터 code/name 구조 적용
- preview-modal.blade.php: 기본필드 테이블 비율 조정 (15:35:15:35)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- CardTransactionHide 모델 생성 (숨김 테이블 연동)
- EcardController에 hide/restore/hidden 메서드 추가
- 기존 transactions/getAllCardsTransactions에 숨김 키 필터링 적용
- 프론트엔드에 숨김 버튼, 삭제데이터 보기 토글, 복원 기능 추가
- web.php에 숨김 관련 라우트 3개 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- SplitModal: 금액 단일필드 → 공급가액+부가세 2필드로 변경
- 행별 합계금액 자동계산 표시
- 분개 리스트 행에 공급가액/부가세 개별 표시
- 분개 기반 요약 재계산 로직 추가 (recalculateSummary)
- 모델: split_supply_amount, split_tax 필드 추가
- 컨트롤러: 분개 합계 검증 및 CSV 내보내기 반영
- 레거시 데이터(supply/tax 없는 기존 분개) 호환성 유지
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- getCategories()를 common_codes 우선 조회로 변경
- 기존 템플릿 카테고리 폴백 유지
- 카테고리 select를 동적 옵션으로 전환
- 직접 입력 옵션 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- fetchRemoteMenus()에서 tenant_id 쿼리 파라미터 추가
- export() API에서 요청의 tenant_id 파라미터 우선 사용
- getMenuTreeForTenant() 메서드 추가로 특정 테넌트 메뉴 조회 지원
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 수동입력 모달 (등록/수정) 추가
- storeManual, updateManual, destroyManual 컨트롤러 메서드 추가
- 바로빌 API 데이터와 수동 입력 건 병합 표시
- 수동 건에 "수동" 배지, 수정/삭제 버튼 표시
- 라우트: POST/PUT/DELETE /barobill/ecard/manual
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- totalTax 집계 시 deductionType이 'deductible'인 건만 포함
- parseTransactionLogs(), getAllCardsTransactions() 양쪽 수정
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- CardTransaction 모델에 modified_supply_amount, modified_tax 추가
- CardTransactionAmountLog 모델 신규 생성 (수정 이력)
- parseTransactionLogs: effectiveSupplyAmount, effectiveTax, isAmountModified 응답 추가
- save: 금액 변경 감지 시 amount_logs 이력 자동 기록
- 프론트엔드: 공급가액/부가세 input 수정 가능, 합계금액 자동계산
- 수정 시 주황색 배경 + 원본값 취소선 표시
- 분개된 거래는 금액 수정 비활성화 (읽기전용)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 문서 작성 시 연결 품목 규격(두께/너비/길이) 기반 자동 하이라이트
- 미리보기에서 field_values 동적 필드 데이터 정상 표시
- DocumentTemplateController에서 field_values 직렬화 추가
- DocumentController에 linkedItemSpecs 조회 로직 추가
- Item 모델 attributes JSON cast 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- POST /api/admin/fund-schedules/copy 엔드포인트 추가
- FundScheduleService에 copySchedulesToMonth() 메서드 추가
- 월 네비게이션 옆 일정복사 버튼 및 모달 UI 구현
- 날짜 조정 로직 (31일→28/29/30일) 포함
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- VatRecord 모델 생성
- VatRecordController CRUD API 생성
- 라우트 추가 (list/store/update/destroy)
- vat.blade.php API 호출 방식으로 전환
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 백엔드에서 페이지네이션 전 전체 데이터로 공제/불공제/부가세 통계 산출
- parseTransactionLogs에 deductibleAmount/Count, nonDeductibleAmount/Count, totalTax 추가
- getAllCardsTransactions summary에 공제/불공제 통계 포함
- 프론트엔드에서 logs 기반 계산 제거, summary 데이터 사용
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 품목 데이터 구조에 month, day 필드 추가
- 품목 테이블에 월/일 입력 컬럼 추가
- 바로빌 API PurchaseExpiry 필드에 YYYYMMDD 형식 거래일자 전달
- 상세 모달에 월/일 표시 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 진행완료(두 시나리오 모두 100%) 필터 버튼 추가 (보라색)
- 진행률 미달 시 수당 날짜 input 5개 disabled 처리
- 통계에 progress_complete 건수 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 가망고객 행을 별도 partial(prospect-row.blade.php)로 분리
- 매니저 드롭다운에서 선택 시 HTMX로 해당 행만 새로고침
- 컨트롤러에 getProspectRow 메서드 추가
- 라우트 추가: salesmanagement/dashboard/prospect/{id}/row
이제 매니저 지정 후 새로고침 없이 화면이 동적으로 업데이트됩니다.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
역할별 수당 상세 모달에서 판매자 수당과 예상 수당 합계가
일치하지 않던 문제를 수정했습니다.
- 기존: 판매자 수당이 SalesCommission 테이블 기준으로 계산
- 변경: 예상 수당(개발 진행 중 + 인계 완료 미지급) 기준으로 표시
- 1차/2차 수당 합계와 역할별 수당 합계가 일치하도록 수정
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 동적 필드/연결 모델 추가 (SectionField, Link, LinkValue, Preset)
- 통합 검색 API (SourceTableSearchController) - items/processes/lots/users
- 템플릿 편집 UI: 소스 테이블 드롭다운 + datalist 검색/선택
- 문서 작성/인쇄/상세 뷰: getFieldValue() 기반 동적 렌더링
- DocumentTemplateApiController: source_table 기반 저장/복제
- DocumentController: sectionFields/links eager loading 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- VehicleLogController: CRUD 및 통계 API 추가
- VehicleLog 모델: 구분/분류 코드 정의 추가
- vehicle-logs.blade.php: React 기반 운행기록부 UI
- routes/web.php: vehicles, summary 엔드포인트 추가
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>