total inflows and outflows in reconciliation statement includes the amount of the balance modification transaction

This commit is contained in:
MaysWind
2025-07-29 00:01:38 +08:00
parent 6eb749dca2
commit ca0fb9446b
8 changed files with 82 additions and 88 deletions
+10
View File
@@ -45,6 +45,16 @@ var liabilityAccountCategory = map[AccountCategory]bool{
ACCOUNT_CATEGORY_CERTIFICATE_OF_DEPOSIT: false,
}
// IsAsset returns whether the account category is an asset category
func (c AccountCategory) IsAsset() bool {
return assetAccountCategory[c]
}
// IsLiability returns whether the account category is a liability category
func (c AccountCategory) IsLiability() bool {
return liabilityAccountCategory[c]
}
// AccountType represents account type
type AccountType byte
+2
View File
@@ -344,6 +344,8 @@ type TransactionReconciliationStatementResponseItem struct {
// TransactionReconciliationStatementResponse represents the response of all transaction reconciliation statement response
type TransactionReconciliationStatementResponse struct {
Transactions []*TransactionReconciliationStatementResponseItem `json:"transactions"`
TotalInflows int64 `json:"totalInflows"`
TotalOutflows int64 `json:"totalOutflows"`
OpeningBalance int64 `json:"openingBalance"`
ClosingBalance int64 `json:"closingBalance"`
}