feat(erp): 添加应付和应收列表的统计信息
- 在ReplyPayableList中添加Count字段用于应付统计 - 新增PayableCount结构体包含金额统计功能 - 在ReplyReceivableList中添加Count字段用于应收统计 - 新增ReceivableCount结构体包含应收、已收和未收金额统计 - 扩展数据返回结构以支持财务统计数据展示
This commit is contained in:
@@ -29,6 +29,10 @@ type PayableSearch struct {
|
|||||||
type ReplyPayableList struct {
|
type ReplyPayableList struct {
|
||||||
List []PayableItem `json:"list"`
|
List []PayableItem `json:"list"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
|
Count PayableCount `json:"count"`
|
||||||
|
}
|
||||||
|
type PayableCount struct {
|
||||||
|
Amount decimal.Decimal `json:"amount"`
|
||||||
}
|
}
|
||||||
type PayableItem struct {
|
type PayableItem struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ type ReceivableSearch struct {
|
|||||||
type ReplyReceivableList struct {
|
type ReplyReceivableList struct {
|
||||||
List []ReceivableItem `json:"list"`
|
List []ReceivableItem `json:"list"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
|
Count ReceivableCount `json:"count"`
|
||||||
|
}
|
||||||
|
type ReceivableCount struct {
|
||||||
|
ReceivableAmount decimal.Decimal `json:"receivableAmount"`
|
||||||
|
ReceivedAmount decimal.Decimal `json:"receivedAmount"`
|
||||||
|
OutstandingAmount decimal.Decimal `json:"outstandingAmount"`
|
||||||
}
|
}
|
||||||
type ReceivableItem struct {
|
type ReceivableItem struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user