From aabc5d4378803d70cca919666c36fd40392004b1 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 15 Apr 2025 16:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E6=94=B9=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/sale.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/erp/sale.go b/erp/sale.go index f7e232a..82bb9f4 100644 --- a/erp/sale.go +++ b/erp/sale.go @@ -315,3 +315,13 @@ func (s *sale) History(ctx context.Context, args ArgsSaleHistory) (reply ReplySa err = xClient.Call(ctx, "History", args, &reply) return } + +// Cancel @TITLE 作废采购合同 +func (s *sale) Cancel(ctx context.Context, saleId int64) (err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + reply := 0 + return xClient.Call(ctx, "Cancel", saleId, &reply) +}