feat(erp): 添加收付款单据统计功能
- 在ReplyReceiptList中增加Count字段返回收据统计数据 - 新增ReceiptCount结构体包含EntryAmount、ReceivableFxAmount和ClaimAmount字段 - 在ReplyRequestList中增加Count字段返回请求统计数据 - 新增RequestCount结构体包含PrepaidAmount、Amount和PaidAmount字段 - 为收付款列表接口提供金额汇总统计支持
This commit is contained in:
@@ -39,6 +39,7 @@ type ReceiptSearch struct {
|
||||
type ReplyReceiptList struct {
|
||||
List []ReceiptItem `json:"list"`
|
||||
Total int64 `json:"total"`
|
||||
Count ReceiptCount `json:"count"`
|
||||
}
|
||||
type ReceiptItem struct {
|
||||
Id int64 `json:"id"`
|
||||
@@ -68,6 +69,12 @@ type ReceiptItem struct {
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type ReceiptCount struct {
|
||||
EntryAmount decimal.Decimal `json:"entryAmount"`
|
||||
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
|
||||
ClaimAmount decimal.Decimal `json:"claimAmount"`
|
||||
}
|
||||
|
||||
// List @TITLE 列表
|
||||
func (r *receipt) List(ctx context.Context, args ArgsReceiptList) (reply ReplyReceiptList, err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
|
||||
Reference in New Issue
Block a user