v3.24.1.1.u2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2024
Apr. 30, 2023
Operating activities:    
Net income $ 141,759 $ 125,479
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 22,406 24,522
Stock-based compensation expense 6,422 6,427
Gain on sale of business 0 (3,770)
Deferred income taxes (6,902) (5,947)
Other 1,358 (1,336)
Changes in operating assets and liabilities:    
Accounts receivable (15,915) 1,744
Inventories 20,861 9,279
Prepaid expenses and other assets (1,849) (3,429)
Accounts payable and accrued liabilities 7,347 (19,704)
Income taxes (4,393) (3,404)
Net cash provided by operating activities 171,094 129,861
Investing activities:    
Purchases of property, plant and equipment (69,157) (12,912)
Proceeds from Divestiture of Businesses 0 8,000
Other (1,174) 11
Net cash used in investing activities (70,331) (4,901)
Financing activities:    
Payment of dividends (33,890) (34,202)
Proceeds from exercise of stock options 5,583 4,091
Payments for employee taxes withheld from stock-based awards (2,664) (1,965)
Purchase of treasury stock (72,225) (29,774)
Proceeds from borrowing on credit agreement 111,790 102,916
Repayment of borrowing on credit agreement (97,732) (147,067)
Other 149 66
Net cash used in financing activities (88,989) (105,935)
Effect of exchange rate changes on cash and cash equivalents (2,848) 1,953
Net increase in cash and cash equivalents 8,926 20,978
Cash and cash equivalents, beginning of period 151,532 114,069
Cash and cash equivalents, end of period $ 160,458 $ 135,047