A deep understanding of how Transaction searches function is crucial knowledge for every NetSuite developer, but the default behaviour of these searches, and controlling that behaviour, can be quite confusing initially.
Remarks
References:
NetSuite Help page: "Using Main Line in Transaction Search Criteria"
Understanding Transaction Searches Related Examples