XML 23 R7.htm IDEA: XBRL DOCUMENT v3.19.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
CASH FLOWS FROM OPERATING ACTIVITIES      
Net income (loss) $ 64,796 $ (29,127) $ 21,076
Adjustments to reconcile net income (loss) to net cash provided by operating activities, net of effects from acquisitions:      
Depreciation and amortization 56,234 69,754 68,235
Stock-based compensation 25,251 23,846 26,132
Provision for losses on accounts receivable 2,741 3,270 2,086
Deferred income taxes (8,536) 26,113 (24,222)
Amortization of debt discount and issuance costs 9,026 8,632 2,844
Impairment charges   7,795 27,047
Gain on sale of business     (2,110)
Other 292 1,668 (1,346)
Changes in operating assets and liabilities-net of business acquisitions:      
Accounts receivable (27,206) 11,340 (44,462)
Inventories 39,447 (59,221) 30,808
Prepaid expenses and other assets (6,175) (836) 5,609
Accounts payable (16,623) 25,145 2,657
Accrued payroll and related expenses 3,355 3,412 1,366
Advances from customers (12,489) 17,183 (33,552)
Other (11,001) 24,135 (19,389)
Net cash provided by operating activities 119,112 133,109 62,779
CASH FLOWS FROM INVESTING ACTIVITIES:      
Acquisition of property and equipment (27,412) (43,198) (17,096)
Acquisition of businesses, net of cash acquired (18,271) (100,159) (188,542)
Net proceeds from sale of business     12,793
Acquisition of intangible and other assets (2,803) (2,453) (5,147)
Net cash used in investing activities (48,486) (145,810) (197,992)
CASH FLOWS FROM FINANCING ACTIVITIES:      
Net borrowings (payments) on bank lines of credit (25,006) 10,000 (22,000)
Proceeds from long-term debt 1,409 1,044 280,541
Payments on long-term debt (3,122) (2,592) (4,077)
Proceeds from exercise of stock options and employee stock purchase plan 9,152 6,896 7,657
Payment of contingent consideration (5,782) (3,634) (2,696)
Repurchase of common stock (21,029) (62,932) (48,453)
Taxes paid related to net share settlement of equity awards (13,936) (20,864) (10,084)
Net cash provided by (used in) financing activities (58,314) (72,082) 200,888
Effect of exchange rate changes on cash (810) (53) (395)
Net increase (decrease) in cash and cash equivalents 11,502 (84,836) 65,280
Cash and cash equivalents-beginning of year 84,814 169,650 104,370
Cash and cash equivalents-end of year 96,316 84,814 169,650
Cash paid, net during the period for:      
Interest 11,862 9,249 5,185
Income taxes $ 34,794 $ 29,445 $ 25,066