diff --git a/erp/sale/append.go b/erp/sale/append.go index c3bf460..b0e2a28 100644 --- a/erp/sale/append.go +++ b/erp/sale/append.go @@ -92,3 +92,18 @@ func (a *append) Delete(ctx context.Context, saleProductIds []int64) (err error) reply := 0 return xClient.Call(ctx, "Delete", saleProductIds, &reply) } + +type ArgsAppendBenefit struct { + SaleId int64 // 销售合同id + WorkflowId int64 // 审核id +} + +// Benefit @TITLE 效益测算 +func (a *append) Benefit(ctx context.Context, args ArgsAppendBenefit) (reply ReplyBenefitInfo, err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + err = xClient.Call(ctx, "Benefit", args, &reply) + return +}