we distinguish two ways of applying filter criteria, 1) for parents where we include matching parts, 2) for parts where we include matching parents. We need first method for cursor filtering the transactions to display, second method for calculating sums. This makes sure that sums are calculated correctly, and that split transactions are displayed when parts match a filter