feat(erp): 添加付款单审核功能

- 新增 BusinessTypePayment 类型用于付款单审核
- 添加 payment 包结构体定义
- 扩展 PaymentSearch 结构体支持 PaymentIds 查询字段
- 在 Payment 结构体中增加 prepaidAmount 和 paidAmount 字段
- 新增 receipt 和 request 查询参数中的发票号字段
- 添加付款单审核提交接口实现
This commit is contained in:
2026-01-21 11:17:56 +08:00
parent dc9b6a4dad
commit 1fdbc29a5c
6 changed files with 42 additions and 2 deletions

View File

@@ -5,19 +5,22 @@ import (
"time"
"git.kumo.work/shama/service/client"
payment2 "git.kumo.work/shama/service/erp/payment"
"git.kumo.work/shama/service/lib/bean"
"github.com/shopspring/decimal"
)
type payment struct {
payment2.Payment
}
type ArgsPaymentList struct {
Page bean.Page
Search PaymentSearch
}
type PaymentSearch struct {
PaymentSerial string // 付款单
AccountingSerial string // 做账合同
PaymentIds []int64 // 付款单id
PaymentSerial string // 付款单
AccountingSerial string // 做账合同号
CreatedAtStart *time.Time
CreatedAtEnd *time.Time
PurchaseStaffIds []int64 // 采购人员
@@ -35,7 +38,9 @@ type PaymentItem struct {
PayableSerial string `json:"payableSerial"`
InvoiceSerial string `json:"invoiceSerial"`
FactoryName string `json:"factoryName"`
PrepaidAmount decimal.Decimal `json:"prepaidAmount"`
Amount decimal.Decimal `json:"amount"`
PaidAmount decimal.Decimal `json:"paidAmount"`
Currency string `json:"currency"`
CurrencyName string `json:"currencyName"`
CurrencySymbol string `json:"currencySymbol"`