XML 18 R7.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED) - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2018
Dec. 31, 2017
CASH FLOWS FROM OPERATING ACTIVITIES    
Net income (loss) $ 28,509 $ (36,794)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 28,283 41,656
Stock based compensation expense 13,626 11,740
Deferred income taxes (3,308) 50,696
Amortization of debt discount and issuance costs 4,469 4,262
Impairment charges   3,144
Other 1,015 885
Changes in operating assets and liabilities-net of business acquisitions:    
Accounts receivable (13,986) 12,054
Inventories (2,265) (21,700)
Prepaid expenses and other assets (5,863) (6,273)
Accounts payable (9,166) (6,647)
Advances from customers 13,676 26,405
Accrued payroll and related expenses (3,760) 12
Other (10,386) 5,261
Net cash provided by operating activities 40,844 84,701
CASH FLOWS FROM INVESTING ACTIVITIES    
Acquisition of property and equipment (12,640) (32,009)
Acquisition of businesses, net of cash acquired (18,259) (83,632)
Acquisition of intangible and other assets (611) (1,068)
Net cash used in investing activities (31,510) (116,709)
CASH FLOWS FROM FINANCING ACTIVITIES    
Net borrowings on bank lines of credit 36,000 92,000
Proceeds from long-term debt 817 295
Payments on long-term debt (1,233) (1,249)
Proceeds from exercise of stock options and employee stock purchase plan 2,809 3,828
Payments of contingent consideration (1,328) (804)
Repurchase of common stock (21,029)  
Taxes paid related to net share settlement of equity awards (12,955) (19,754)
Net cash provided by financing activities 3,081 74,316
Effect of exchange rate changes on cash (1,262) 15
Net increase in cash and cash equivalents 11,153 42,323
Cash and cash equivalents-beginning of period 95,967 211,973
Cash and cash equivalents-end of period 84,814 169,650
Cash paid, net during the period for:    
Interest 6,318 3,783
Income taxes $ 20,711 $ 11,929