A search result has a grain: one row may represent a transaction header or an item line. Main Line true returns the supported transaction headers. Main Line false returns item-bearing transaction lines in this model. Choose the grain before interpreting counts and amounts.
A multi-line order can have one header and several lines. Summing the header amount after repeating it across unrelated joins would overstate a total; this simulator deliberately uses item-line amounts for its line rows. NetSuite warns that Main Line filtering isn't valid for journal-entry searches, so this course doesn't teach that shortcut for journals. Select columns that exist at the chosen grain, then sort by an included result field. Column names and a familiar total don't by themselves establish that the underlying rows match the request.