XML 21 R6.htm IDEA: XBRL DOCUMENT v3.10.0.1
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Cash flows from operating activities    
Net loss $ (13,846) $ (14,101)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 4,174 5,007
Share-based compensation 4,899 5,870
Amortization of debt issuance costs 764 868
Amortization and accretion of discount and premium on investments   (10)
Accretion of interest on debt 1,626 1,727
Provision for bad debt 3,615 22
Provision for write-down of inventories 1,302 1,189
Loss on disposal of property and equipment 156 11
Loss on extinguishment of debt   3,192
Changes in assets and liabilities:    
Accounts receivable (21,518) (10,156)
Inventories (11,718) (11,832)
Prepaid expenses and other assets (3,587) 5,855
Deferred cost of revenue 405 1,206
Accounts payable 11,558 8,085
Accrued liabilities (6,109) (8,059)
Customer advances (3,022) 2,787
Deferred revenues (297) (5,401)
Net cash used in operating activities (31,598) (13,740)
Cash flows from investing activities    
Purchases of property and equipment, net (2,218) (1,977)
Purchases of investments   (5,940)
Sales and maturities of investments   6,000
Net cash used in investing activities (2,218) (1,917)
Cash flows from financing activities    
Proceeds from employee stock plans 2,048 2,036
Taxes paid related to net share settlement of equity awards   (293)
Proceeds from debt, net of costs 5,000 66,111
Payments made to note and loan holders   (29,581)
Repayments under Revolving Credit Facility, net (1,147) (26,565)
Net cash provided by financing activities 5,901 11,708
Effect of exchange rate changes on cash, cash equivalents and restricted cash (266) 891
Net decrease in cash, cash equivalents and restricted cash (28,181) (3,058)
Cash, cash equivalents and restricted cash at beginning of period 93,533 85,235
Cash, cash equivalents and restricted cash at end of period $ 65,352 $ 82,177