feat(paymentRefund): 新增取消付款退款单方法

- 添加 Cancel 方法用于取消付款退款单
- 通过远程客户端调用 Cancel 接口实现取消逻辑
This commit is contained in:
2026-10-20 15:07:27 +08:00
parent f8355570e6
commit 7406f37764

View File

@@ -142,6 +142,16 @@ func (p *paymentRefund) Edit(ctx context.Context, args ArgsPaymentRefundEdit) (e
return xClient.Call(ctx, "Edit", args, &reply)
}
// Cancel @TITLE 取消付款退款单
func (p *paymentRefund) Cancel(ctx context.Context, paymentRefundId int64) error {
xClient, err := client.GetClient(p)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "Cancel", paymentRefundId, &reply)
}
// Ik3cloud @TITLE 金蝶同步
func (p *paymentRefund) Ik3cloud(ctx context.Context, paymentRefundId int64) (err error) {
xClient, err := client.GetClient(p)