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)
| 942 | // - map[string][]*model.Transaction: A map of grouped internal transactions. |
| 943 | // - error: If any error occurs during grouping. |
| 944 | func (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. |
no test coverage detected