feat(distribution): 补齐退款加价回退、本站自卖与开通默认规则
退款时压缩卖方加价,人工/自动批次仅完结单可入账,号主收入进主站钱包;仲裁后重算释放并支持作废未入账 DS。开通时四种模式按默认生效,对外口径合并为 35/40/25,不再单独展示通道费。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -246,6 +246,9 @@ func TestE2EScenario1_MainSiteReceive_SubSiteMarkupSell_Settlement(t *testing.T)
|
||||
// ----------------------------------------------------
|
||||
// 6. 批次结算与分站金库到账 (Settlement Batch & Wallet Credit)
|
||||
// ----------------------------------------------------
|
||||
if err := db.Model(&model.RentalOrder{}).Where("id = ?", orderDTO.ID).Update("status", "completed").Error; err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
distRepo := distribution.NewRepository(db)
|
||||
|
||||
// 创建结算批次
|
||||
|
||||
Reference in New Issue
Block a user