XML 24 R7.htm IDEA: XBRL DOCUMENT v3.22.2.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2020
CASH FLOWS FROM OPERATING ACTIVITIES      
Net income $ 115,347 $ 74,049 $ 75,252
Adjustments to reconcile net income to net cash provided by operating activities, net of effects from acquisitions:      
Depreciation and amortization 38,679 43,855 49,758
Stock-based compensation 28,072 26,771 23,817
Provision for (recovery of) losses on accounts receivable (5,978) 9,823 4,741
Deferred income taxes 3,520 432 (431)
Amortization of debt discount and issuance costs 1,343 9,756 9,383
Impairment charges 1,006 552 5,458
Gain on sale of property and equipment (27,373)    
Other (1,326) (109) 178
Changes in operating assets and liabilities-net of business acquisitions:      
Accounts receivable (13,710) (28,955) (37,071)
Inventories (44,662) (47,768) 30,752
Prepaid expenses and other assets 22,323 (34,430) (10,566)
Accounts payable (15,055) 55,601 (8,893)
Accrued payroll and related expenses (1,998) 10,486 4,205
Advances from customers (18,423) 9,796 (15,188)
Other (17,957) 9,207 (2,215)
Net cash provided by operating activities 63,808 139,066 129,180
CASH FLOWS FROM INVESTING ACTIVITIES      
Acquisition of property and equipment (14,921) (16,896) (21,057)
Proceeds from sale of property and equipment 34,132 1,136 669
Purchases of certificates of deposit (2,243) (4,892)  
Proceeds from maturities of certificates of deposit 56 2,710  
Acquisition of businesses, net of cash acquired (14,132) (3,000) (8,940)
Acquisition of intangible and other assets (15,566) (13,751) (13,359)
Net cash used in investing activities (12,674) (34,693) (42,687)
CASH FLOWS FROM FINANCING ACTIVITIES      
Net borrowings (repayments) on bank lines of credit 60,000 (59,000) (29,000)
Proceeds from long-term debt 50,388 739 770
Payments on long-term debt (46,074) (1,057) (970)
Proceeds from exercise of stock options and employee stock purchase plan 4,796 5,517 6,103
Payment of contingent consideration (2,061) (1,007) (5,353)
Repurchase of common stock (111,627) (37,468) (51,775)
Taxes paid related to net share settlement of equity awards (19,430) (11,649) (24,505)
Net cash used in financing activities (64,008) (103,925) (104,730)
Effect of exchange rate changes on cash (3,537) 4,063 (1,977)
Net increase (decrease) in cash and cash equivalents (16,411) 4,511 (20,214)
Cash and cash equivalents-beginning of year 80,613 76,102 96,316
Cash and cash equivalents-end of year 64,202 80,613 76,102
Supplemental disclosure of cash flow information:      
Interest 6,979 5,979 7,713
Income taxes $ 16,658 $ 12,778 $ 19,077