diff --git a/erp/payable.go b/erp/payable.go index 79c1e37..f7c635b 100644 --- a/erp/payable.go +++ b/erp/payable.go @@ -29,6 +29,10 @@ type PayableSearch struct { type ReplyPayableList struct { List []PayableItem `json:"list"` Total int64 `json:"total"` + Count PayableCount `json:"count"` +} +type PayableCount struct { + Amount decimal.Decimal `json:"amount"` } type PayableItem struct { Id int64 `json:"id"` diff --git a/erp/receivable.go b/erp/receivable.go index cba09aa..2fd5dad 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -28,6 +28,12 @@ type ReceivableSearch struct { type ReplyReceivableList struct { List []ReceivableItem `json:"list"` 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 { Id int64 `json:"id"`