diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index 2bc6e68..c251bac 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -618,7 +618,7 @@ func commSubsidy(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUse if grade[lv].UserSubsidyType == "" { grade[lv].UserSubsidyType = "up_lv" } - if opt.Mode == "lv_price_other" && grade[lv].UserSubsidyType != "up_lv" { + if (opt.Mode == "lv_price_other" || opt.Mode == "lv_commission_other") && grade[lv].UserSubsidyType != "up_lv" { pvdBool = false } if pvdBool && lvuser.Diff != 1 { diff --git a/lib/comm_plan/init.go b/lib/comm_plan/init.go index deb3c04..001b037 100644 --- a/lib/comm_plan/init.go +++ b/lib/comm_plan/init.go @@ -14,6 +14,7 @@ var Fn = map[string]func(opt *PlanOpt, totalAmt, integralTotalAmt float64, userL "lv_winery": CalcWinery, "lv_winery_adv": CalcAdv, "lv_price_other": CalcOther, + "lv_commission_other": CalcOther, "lv_ds_check": CalcDsCheck, }