From 020d1ddb365670d0b03b360ff8b995dce905b086 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 23 Oct 2024 13:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/accounting.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/erp/accounting.go b/erp/accounting.go index c506037..c4e794d 100644 --- a/erp/accounting.go +++ b/erp/accounting.go @@ -187,3 +187,14 @@ func (a *accounting) Factories(ctx context.Context, accountingId int64) (reply [ return } + +// Cancel @TITLE 作废 +func (a *accounting) Cancel(ctx context.Context, accountingId int64) (err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Cancel", accountingId, &reply) + return +}