From c58fcc0471f9be7bf35aad68ce8c840b6f2bb106 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 22 Apr 2025 14:30:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(accounting):=20=E6=B7=BB=E5=8A=A0=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=AE=A1=E6=A0=B8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 accounting 结构中新增 CancelAudit 方法 - 该方法用于调用取消审核接口,参数为会计凭证 ID - 完成对取消审核功能的实现,解决相关功能需求 --- erp/accounting.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/erp/accounting.go b/erp/accounting.go index 7e47f8d..68ad03d 100644 --- a/erp/accounting.go +++ b/erp/accounting.go @@ -202,3 +202,14 @@ func (a *accounting) Cancel(ctx context.Context, accountingId int64) (err error) err = xClient.Call(ctx, "Cancel", accountingId, &reply) return } + +// CancelAudit @TITLE 取消审核 +func (a *accounting) CancelAudit(ctx context.Context, accountingId int64) (err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "CancelAudit", accountingId, &reply) + return +}