fix(app): 修复取消对账时更新销售产品数量错误
- 在取消对账时,通过预加载 PurchaseProduct 关联表来获取正确的销售产品 ID -确保更新销售产品的 AccountedCount 时使用正确的数量
This commit is contained in:
parent
c58fcc0471
commit
91471e0c81
@ -214,3 +214,14 @@ func (p *purchase) History(ctx context.Context, args ArgsPurchaseHistory) (reply
|
|||||||
err = xClient.Call(ctx, "History", args, &reply)
|
err = xClient.Call(ctx, "History", args, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CancelAudit @TITLE 反审
|
||||||
|
func (p *purchase) CancelAudit(ctx context.Context, purchaseId int64) (err error) {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
err = xClient.Call(ctx, "CancelAudit", purchaseId, &reply)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user