feat: 분급 비율 회차(월) 단위 등록 지원 (V81)

- installment_ratio.plan_month INT NULL 컬럼 추가
  - NULL = 연 단위(연차 합계, 기존 동작)
  - 1~12 = 해당 회차(월) 단위 비율
- UNIQUE 재정의: NULLS NOT DISTINCT (product_category, plan_year, plan_month, effective_from)
- InstallmentPlanGenerator: planMonth=NULL이면 1, NOT NULL이면 그대로 사용해 settle_month 계산
- 분급비율 화면: 회차(월) 컬럼·입력 추가, "(연차-1)*12+월" 통합 회차 표기
This commit is contained in:
GA Pro
2026-05-24 01:27:47 +09:00
parent 3f52596a8b
commit c005ad705a
10 changed files with 97 additions and 12 deletions
+4
View File
@@ -5,6 +5,7 @@ export interface InstallmentRatioResp {
productCategory: string | null;
productCategoryName: string | null;
planYear: number;
planMonth: number | null;
ratioPercent: number;
effectiveFrom: string;
effectiveTo: string | null;
@@ -14,6 +15,7 @@ export interface InstallmentRatioResp {
export interface InstallmentRatioSaveReq {
productCategory?: string | null;
planYear: number;
planMonth?: number | null;
ratioPercent: number;
effectiveFrom: string;
effectiveTo?: string | null;
@@ -21,6 +23,8 @@ export interface InstallmentRatioSaveReq {
export interface InstallmentRatioSearchParam {
productCategory?: string;
planYear?: number;
planMonth?: number;
pageNum?: number;
pageSize?: number;
}