XML 17 R6.htm IDEA: XBRL DOCUMENT v3.8.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED) - USD ($)
$ in Thousands
9 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Cash flows from operating activities:    
Net income (loss) $ (34,241) $ 19,529
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 55,368 49,042
Stock based compensation 17,754 20,262
Provision for losses on accounts receivable 1,054 863
Deferred income taxes 50,775 101
Amortization of debt discount and issuance costs 6,426 779
Impairment charges 7,181 5,418
Gain on sale of business   (2,110)
Other 1,071 222
Changes in operating assets and liabilities-net of business acquisitions:    
Accounts receivable 7,131 (20,677)
Inventories (48,703) 26,410
Prepaid expenses and other assets (22,121) (6,017)
Accounts payable 19,522 6,733
Advances from customers 32,152 (27,417)
Deferred revenues 6,964 (16,582)
Other 15,431 (4,385)
Net cash provided by operating activities 115,764 52,171
Cash flows from investing activities:    
Acquisition of property and equipment (36,432) (11,979)
Acquisition of businesses, net of cash acquired (103,184) (191,238)
Net proceeds from sale of business   12,793
Acquisition of intangible and other assets (2,250) (4,034)
Net cash used in investing activities (141,866) (194,458)
Cash flows from financing activities:    
Net borrowings (payments) on bank lines of credit 125,000 (32,000)
Proceeds from long-term debt 626 280,261
Payments on long-term debt (1,933) (2,716)
Proceeds from exercise of stock options and employee stock purchase plan 6,608 9,953
Repurchase of common stock (59,684) (48,453)
Taxes paid related to net share settlements of equity awards (20,574) (9,922)
Net cash provided by financing activities 50,043 197,123
Effect of exchange rate changes on cash 410 (734)
Net increase in cash and cash equivalents 24,351 54,102
Cash and cash equivalents-beginning of period 169,650 104,370
Cash and cash equivalents-end of period 194,001 158,472
Supplemental disclosure of cash flow information:    
Interest 6,508 4,286
Income taxes $ 21,728 $ 16,108