XML 17 R6.htm IDEA: XBRL DOCUMENT v3.8.0.1
UNAUDITED CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Cash flows from operating activities:    
Net income (loss) $ (36,794) $ 5,510
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 41,656 32,175
Stock based compensation expense 11,740 14,059
Deferred income taxes 50,696 93
Amortization of debt discount and issuance costs 4,262  
Impairment charges 3,144 5,418
Other 885 135
Changes in operating assets and liabilities-net of business acquisitions:    
Accounts receivable 12,054 (12,550)
Inventories (21,700) 14,216
Prepaid expenses and other current assets (6,273) (12,028)
Accounts payable (6,647) (966)
Accrued payroll and related expenses 12 1,716
Advances from customers 26,405 (20,055)
Other 5,261 (9,458)
Net cash provided by operating activities 84,701 18,265
Cash flows from investing activities:    
Acquisition of property and equipment (32,009) (4,329)
Acquisition of businesses, net of cash acquired (84,436) (189,014)
Acquisition of intangible and other assets (1,068) (2,735)
Net cash used in investing activities (117,513) (196,078)
Cash flows from financing activities:    
Net borrowings on bank lines of credit 92,000 224,000
Proceeds from long-term debt 295 240
Payments on long-term debt (1,249) (1,440)
Proceeds from exercise of stock options and employee stock purchase plan 3,828 6,457
Repurchase of common shares   (7,367)
Taxes paid related to net share settlements of equity awards (19,754) (9,015)
Net cash provided by financing activities 75,120 212,875
Effect of exchange rate changes on cash 15 (1,184)
Net increase in cash and cash equivalents 42,323 33,878
Cash and cash equivalents-beginning of period 169,650 104,370
Cash and cash equivalents-end of period 211,973 138,248
Supplemental disclosure of cash flow information:    
Interest 3,783 2,918
Income taxes $ 11,929 $ 12,665