XML 16 R7.htm IDEA: XBRL DOCUMENT v3.21.4
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities    
Net income (loss) $ (849) $ 5,171
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation and amortization 2,841 3,317
Share-based compensation 5,211 4,608
Amortization of debt issuance costs 379 717
Accretion of interest on debt 2,491
Provision (reversal of provision) for credit losses 366 (512)
Non-cash revenue transactions related to joint venture contribution (1,365)
Provision for write-down of inventories 1,875 3,504
Loss on disposal of property and equipment 28 2
(Income) loss on equity method investment 1,172 (1,089)
Release (deferral) of equity method investment intra-entity profit on sales 955 (557)
Changes in assets and liabilities:    
Accounts receivable 2,954 26,683
Inventories (550) (6,809)
Prepaid expenses and other assets (872) 684
Deferred cost of revenue 1,653 137
Accounts payable 10,182 (12,076)
Operating lease liabilities, net (435) (306)
Accrued liabilities 2,486 2,102
Customer advances (314) (3,637)
Deferred revenues (3,071) (6,651)
Net cash provided by operating activities 24,011 16,414
Cash flows from investing activities    
Purchases of property and equipment (2,259) (1,167)
Additional investments in joint venture (79)
Net cash used in investing activities (2,259) (1,246)
Cash flows from financing activities    
Proceeds from employee stock plans 1,224 1,042
Proceeds from exercise of options 1,524 66
Taxes paid related to net share settlement of equity awards (258) (343)
Paydown under the Company's prior term loan and amendment cost, net (10,500)
Paydown under Term Loan (2,000)
Repayments under the Company's prior revolving credit facility, net   (1,288)
Repayments under Revolving Credit Facility, net (15,000)
Net cash used in financing activities (14,510) (11,023)
Effect of exchange rate changes on cash, cash equivalents and restricted cash (747) 3,298
Net increase in cash, cash equivalents and restricted cash 6,495 7,443
Cash, cash equivalents and restricted cash at beginning of period 118,201 109,911
Cash, cash equivalents and restricted cash at end of period 124,696 117,354
Supplemental disclosures of cash flow information:    
Write-off of previously reserved accounts receivable 3,582
Reclassification of equity component of convertible notes into liabilities upon adoption of ASU 2020-06 $ 25,633