feat(erp): 添加应付模块功能

- 新增应付模块,支持应付列表和详情接口
- 添加应付单据的保存功能
- 实现与客户端的通信调用逻辑
- 定义应付相关的数据结构和参数类型
- 支持分页查询和搜索条件过滤
This commit is contained in:
2025-12-09 13:11:14 +08:00
parent 89999b7df3
commit 8614837410
8 changed files with 173 additions and 30 deletions

View File

@@ -1,25 +0,0 @@
package ik3cloud
import (
"context"
"git.kumo.work/shama/service/client"
)
type payment struct {
}
type ArgsPaymentSave struct {
PaymentId int64 // 付款单id
Number string // 编码
CustomNumber string // 客户编码
}
// Save @TITLE 保存客户
func (p *payment) Save(ctx context.Context, args ArgsPaymentSave) (entity Entity, err error) {
xClient, err := client.GetClient(p)
if err != nil {
return
}
err = xClient.Call(ctx, "Save", args, &entity)
return
}