XML 89 R8.htm IDEA: XBRL DOCUMENT v3.20.1
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Mar. 31, 2020
Mar. 31, 2019
Cash flows from operating activities    
Net income (loss) $ 3,979 $ (15,030)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 5,581 6,088
Share-based compensation 5,865 7,779
Amortization of debt issuance costs 1,005 1,157
Accretion of interest on debt 3,090 2,489
Provision for bad debt 1,169 3,639
Gain on contribution to equity method investment (12,964)  
Provision for write-down of inventories 2,877 2,099
Loss on disposal of property and equipment 9 250
Gain on equity method investment (222)  
Elimination of equity method investment intra-entity profit on sales 1,129  
Gain on termination of lease obligation   (1,007)
Changes in assets and liabilities:    
Accounts receivable 7,519 (34,971)
Inventories (23,844) (17,763)
Prepaid expenses and other assets 2,682 (7,382)
Deferred cost of revenue 81 520
Accounts payable (3,366) 5,465
Operating lease liabilities, net (461)  
Accrued liabilities (16,716) 1,458
Customer advances (2,299) 107
Deferred revenues 4,598 6,375
Net cash used in operating activities (20,288) (38,727)
Cash flows from investing activities    
Purchases of property and equipment (2,764) (3,236)
Purchase of intangible asset (170)  
Net cash used in investing activities (2,934) (3,236)
Cash flows from financing activities    
Proceeds from employee stock plans 1,359 3,215
Taxes paid related to net share settlement of equity awards (207)  
Proceeds from debt, net of costs 24,716 5,000
Borrowings under Revolving Credit Facility, net 2,458 6,498
Net cash provided by financing activities 28,326 14,713
Effect of exchange rate changes on cash, cash equivalents and restricted cash (675) (937)
Net increase (decrease) in cash, cash equivalents and restricted cash 4,429 (28,187)
Cash, cash equivalents and restricted cash at beginning of period 88,178 93,533
Cash, cash equivalents and restricted cash at end of period 92,607 $ 65,346
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