XML 20 R7.htm IDEA: XBRL DOCUMENT v3.19.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED) - USD ($)
$ in Thousands
9 Months Ended
Mar. 31, 2019
Mar. 31, 2018
CASH FLOWS FROM OPERATING ACTIVITIES    
Net income (loss) $ 48,135 $ (34,241)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 42,401 55,368
Stock-based compensation expense 19,514 17,754
Deferred income taxes (3,220) 50,775
Amortization of debt discount and issuance costs 6,733 6,426
Impairment charges   7,181
Other 1,617 2,125
Changes in operating assets and liabilities-net of business acquisitions:    
Accounts receivable (5,967) 7,131
Inventories 16,232 (48,703)
Prepaid expenses and other assets (6,620) (22,121)
Accounts payable (20,265) 19,522
Accrued payroll and related expenses (4,008) (1,689)
Advances from customers 4,258 32,152
Other (11,066) 24,084
Net cash provided by operating activities 87,744 115,764
CASH FLOWS FROM INVESTING ACTIVITIES:    
Acquisition of property and equipment (20,905) (36,432)
Acquisition of businesses, net of cash acquired (18,271) (100,567)
Acquisition of intangible and other assets (1,657) (2,250)
Net cash used in investing activities (40,833) (139,249)
CASH FLOWS FROM FINANCING ACTIVITIES:    
Net borrowings on bank lines of credit 11,000 125,000
Proceeds from long-term debt 1,019 626
Payments on long-term debt (1,880) (1,933)
Proceeds from exercise of stock options and employee stock purchase plan 6,165 6,608
Payment of contingent consideration (4,797) (2,617)
Repurchase of common stock (21,029) (59,684)
Taxes paid related to net share settlement of equity awards (13,741) (20,574)
Net cash provided by (used in) financing activities (23,263) 47,426
Effect of exchange rate changes on cash (813) 410
Net increase in cash and cash equivalents 22,835 24,351
Cash and cash equivalents-beginning of period 84,814 169,650
Cash and cash equivalents-end of period 107,649 194,001
Cash paid, net during the period for:    
Interest 9,394 6,508
Income taxes $ 28,233 $ 21,728