feat(erp): 添加付款单审核功能
- 新增 BusinessTypePayment 类型用于付款单审核 - 添加 payment 包结构体定义 - 扩展 PaymentSearch 结构体支持 PaymentIds 查询字段 - 在 Payment 结构体中增加 prepaidAmount 和 paidAmount 字段 - 新增 receipt 和 request 查询参数中的发票号字段 - 添加付款单审核提交接口实现
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user