XML 19 R7.htm IDEA: XBRL DOCUMENT v3.20.4
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED) - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2020
Dec. 31, 2019
CASH FLOWS FROM OPERATING ACTIVITIES    
Net income $ 29,382 $ 41,729
Adjustments to reconcile net income to net cash provided by operating activities, net of effects from acquisitions:    
Depreciation and amortization 21,162 26,961
Stock-based compensation expense 11,821 12,260
Provision for losses on accounts receivable 5,240 677
Deferred income taxes 44 (53)
Amortization of debt discount and issuance costs 4,830 4,646
Impairment charges 552  
Other 55 200
Changes in operating assets and liabilities-net of business acquisitions:    
Accounts receivable 3,189 (19,455)
Inventories (25,151) 19,930
Prepaid expenses and other assets (9,622) (17,646)
Accounts payable 4,408 12,739
Accrued payroll and related expenses (4,328) (5,381)
Advances from customers 45,250 (10,580)
Other 2,647 (6,400)
Net cash provided by operating activities 89,479 59,627
CASH FLOWS FROM INVESTING ACTIVITIES    
Acquisition of property and equipment (8,508) (11,593)
Purchases of certificates of deposit (2,628)  
Proceeds from maturities of certificates of deposit 700  
Acquisition of business, net of cash acquired (3,000) (171)
Payments for intangible and other assets (7,047) (3,853)
Net cash used in investing activities (20,483) (15,617)
CASH FLOWS FROM FINANCING ACTIVITIES    
Net borrowings (repayments) on bank lines of credit (41,000) 3,000
Proceeds from long-term debt 315 441
Payments on long-term debt (539) (480)
Proceeds from exercise of stock options and employee stock purchase plan 2,585 6,097
Payments of contingent consideration (628) (1,220)
Repurchases of common stock (24,816) (26,994)
Taxes paid related to net share settlement of equity awards (11,327) (26,710)
Net cash used in financing activities (75,410) (45,866)
Effect of exchange rate changes on cash 2,887 596
Net change in cash and cash equivalents (3,527) (1,260)
Cash and cash equivalents-beginning of period 76,102 96,316
Cash and cash equivalents-end of period 72,575 95,056
Cash paid, net during the period for:    
Interest 3,012 4,242
Income taxes $ 5,125 $ 9,668