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)
| 809 | // - map[string][]*model.Transaction: A map of grouped transactions. |
| 810 | // - error: If there is an error retrieving the transactions. |
| 811 | func (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. |
no test coverage detected