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

Method groupExternalTransactions

reconciliation.go:811–813  ·  view source on GitHub ↗

groupExternalTransactions retrieves and groups external transactions based on the specified criteria. This is used in many-to-one reconciliation. Parameters: - ctx: The context controlling the operation. - groupingCriteria: The criteria to group transactions. - batchSize: The number of transactions

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

Source from the content-addressed store, hash-verified

809// - map[string][]*model.Transaction: A map of grouped transactions.
810// - error: If there is an error retrieving the transactions.
811func (s *LedgerForge) groupExternalTransactions(ctx context.Context, uploadID string, groupingCriteria string, batchSize int, offset int64) (map[string][]*model.Transaction, error) {
812 return s.datasource.FetchAndGroupExternalTransactions(ctx, uploadID, groupingCriteria, batchSize, offset)
813}
814
815// processGroupedTransactions handles the matching of transactions for both one-to-many and many-to-one reconciliations.
816// It processes each transaction group in parallel, comparing them to the target transactions.

Callers 1

manyToOneMethod · 0.95

Tested by

no test coverage detected