feat(erp): 添加应付账款确认功能
- 实现 Confirm 方法用于确认应付账款 - 使用 RPC 客户端调用远程 Confirm 接口 - 返回确认操作的结果状态
This commit is contained in:
@@ -103,3 +103,13 @@ func (p *payable) Info(ctx context.Context, payableId int64) (reply ReplyPayable
|
|||||||
err = xClient.Call(ctx, "List", payableId, &reply)
|
err = xClient.Call(ctx, "List", payableId, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Confirm @TITLE 确认
|
||||||
|
func (p *payable) Confirm(ctx context.Context, payableId int64) (err error) {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
return xClient.Call(ctx, "Confirm", payableId, &reply)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user