MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / groupInternalTransactions

Method groupInternalTransactions

reconciliation.go:944–946  ·  view source on GitHub ↗

groupInternalTransactions groups internal transactions based on the specified criteria for reconciliation. Parameters are the same as `groupExternalTransactions`. Returns: - map[string][]*model.Transaction: A map of grouped internal transactions. - error: If any error occurs during grouping.

(ctx context.Context, groupingCriteria string, batchSize int, offset int64)

Source from the content-addressed store, hash-verified

942// - map[string][]*model.Transaction: A map of grouped internal transactions.
943// - error: If any error occurs during grouping.
944func (s *LedgerForge) groupInternalTransactions(ctx context.Context, groupingCriteria string, batchSize int, offset int64) (map[string][]*model.Transaction, error) {
945 return s.datasource.GroupTransactions(ctx, groupingCriteria, batchSize, offset)
946}
947
948// findMatchingInternalTransaction attempts to find an internal transaction that matches the given external transaction.
949// It processes the transactions in batches and applies the matching rules.

Callers 1

oneToManyMethod · 0.95

Calls 1

GroupTransactionsMethod · 0.65

Tested by

no test coverage detected