feat(erp): 新增货币汇率服务及收汇水单批量生成

- 新增 currencyRate 模块,支持按货币和日期查询汇率信息
- 定义汇率响应结构,包含中间价、现钞卖出价、买入价等字段
- 在 ERP 服务结构体中注册 CurrencyRate 客户端
- 新增收汇水单批量生成接口 Gen,支持按交易明细ID批量生成
- 定义 ArgsReceiptGen 参数结构,包含员工ID和交易明细ID列表
This commit is contained in:
2026-10-19 11:25:54 +08:00
parent 8f2441921f
commit 25069c5280
4 changed files with 51 additions and 0 deletions

View File

@@ -198,3 +198,18 @@ func (r *receipt) Cancel(ctx context.Context, receiptId int64) (err error) {
reply := 0
return xClient.Call(ctx, "Cancel", receiptId, &reply)
}
type ArgsReceiptGen struct {
StaffId int64
BankStatementIds []int64 // 交易明细id
}
// Gen @TITLE 批量生成收汇水单
func (r *receipt) Gen(ctx context.Context, args ArgsReceiptGen) (receiptIds []int64, err error) {
xClient, err := client.GetClient(r)
if err != nil {
return
}
err = xClient.Call(ctx, "Gen", args, &receiptIds)
return
}