P2-03/04 봉투 단가 관리 CRUD + 이력 + 기간별 조회

- bag_price, bag_price_history 테이블 생성
- BagPriceModel, BagPriceHistoryModel
- BagPrice 컨트롤러 (목록/등록/수정/삭제/이력)
- 단가 변경 시 자동 이력 기록 (트랜잭션)
- 기간 필터 조회 (적용시작일/종료일)
- 봉투코드(O) 드롭다운 연동
- E2E 테스트 5개 전체 통과
- 스크린샷 2개 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
javamon1174
2026-03-25 16:27:42 +09:00
parent 41442c23a1
commit 6949227592
12 changed files with 558 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class BagPriceModel extends Model
{
protected $table = 'bag_price';
protected $primaryKey = 'bp_idx';
protected $returnType = 'object';
protected $useTimestamps = false;
protected $allowedFields = [
'bp_lg_idx', 'bp_bag_code', 'bp_bag_name',
'bp_order_price', 'bp_wholesale', 'bp_consumer',
'bp_start_date', 'bp_end_date', 'bp_state',
'bp_regdate', 'bp_moddate', 'bp_reg_mb_idx',
];
}