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 +}