feat(erp): 添加付款单审核功能
- 新增 BusinessTypePayment 类型用于付款单审核 - 添加 payment 包结构体定义 - 扩展 PaymentSearch 结构体支持 PaymentIds 查询字段 - 在 Payment 结构体中增加 prepaidAmount 和 paidAmount 字段 - 新增 receipt 和 request 查询参数中的发票号字段 - 添加付款单审核提交接口实现
This commit is contained in:
26
erp/payment/audit.go
Normal file
26
erp/payment/audit.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package payment
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
)
|
||||
|
||||
type audit struct {
|
||||
}
|
||||
type ArgsAuditSubmit struct {
|
||||
StaffId int64 // 操作人
|
||||
PaymentId int64 // 付款单
|
||||
AuditStaffIds []int64 // 审核人
|
||||
}
|
||||
|
||||
// Submit @TITLE 提交审核
|
||||
func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) {
|
||||
xClient, err := client.GetClient(a)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
err = xClient.Call(ctx, "Submit", args, &reply)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user