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

Method buildGroupMap

reconciliation.go:931–937  ·  view source on GitHub ↗

buildGroupMap creates a map for tracking unprocessed transaction groups. Parameters: - groupedTxns: The grouped transactions. Returns: - map[string]bool: A map with group keys as true, indicating that they have not yet been processed.

(groupedTxns map[string][]*model.Transaction)

Source from the content-addressed store, hash-verified

929// Returns:
930// - map[string]bool: A map with group keys as true, indicating that they have not yet been processed.
931func (s *LedgerForge) buildGroupMap(groupedTxns map[string][]*model.Transaction) map[string]bool {
932 groupMap := make(map[string]bool)
933 for key := range groupedTxns {
934 groupMap[key] = true
935 }
936 return groupMap
937}
938
939// groupInternalTransactions groups internal transactions based on the specified criteria for reconciliation.
940// Parameters are the same as `groupExternalTransactions`.

Callers 2

manyToOneMethod · 0.95
oneToManyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected