feat(erp): 添加应付账款确认功能

- 实现 Confirm 方法用于确认应付账款
- 使用 RPC 客户端调用远程 Confirm 接口
- 返回确认操作的结果状态
This commit is contained in:
2025-12-09 13:27:32 +08:00
parent 5cd534571d
commit 165109e9fd

View File

@@ -103,3 +103,13 @@ func (p *payable) Info(ctx context.Context, payableId int64) (reply ReplyPayable
err = xClient.Call(ctx, "List", payableId, &reply)
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)
}