XML 19 R7.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Cash flows from operating activities    
Net income (loss) $ 1,354 $ (13,846)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 3,712 4,174
Share-based compensation 3,849 4,899
Amortization of debt issuance costs 661 764
Accretion of interest on debt 2,018 1,626
Provision for bad debt 853 3,615
Gain on contribution to joint venture (12,964) 0
Provision for write-down of inventories 2,208 1,302
Loss on disposal of property and equipment 0 156
Changes in assets and liabilities:    
Accounts receivable 23,589 (21,518)
Inventories (17,210) (11,718)
Prepaid expenses and other assets 2,986 (3,587)
Deferred cost of revenue 132 405
Accounts payable (7,718) 11,558
Operating lease liabilities, net (331) 0
Accrued liabilities (11,084) (6,109)
Customer advances (2,085) (3,022)
Deferred revenues 1,863 (297)
Net cash used in operating activities (8,167) (31,598)
Cash flows from investing activities    
Purchases of property and equipment, net (2,533) (2,218)
Net cash used in investing activities (2,533) (2,218)
Cash flows from financing activities    
Proceeds from employee stock plans 1,358 2,048
Taxes paid related to net share settlement of equity awards (207) 0
Proceeds from debt, net of costs 24,716 5,000
Borrowings (repayments) under Revolving Credit Facility, net (2,983) (1,147)
Net cash provided by financing activities 22,884 5,901
Effect of exchange rate changes on cash, cash equivalents and restricted cash 28 (266)
Net increase (decrease) in cash, cash equivalents and restricted cash 12,212 (28,181)
Cash, cash equivalents and restricted cash at beginning of period 88,178 93,533
Cash, cash equivalents and restricted cash at end of period 100,390 65,352
Supplemental schedule of non-cash investing and financing activities:    
An equity method investment, in exchange for non-cash contributions of assets to China Joint Venture (including gain of $12,964) $ 15,925 $ 0