XML 17 R6.htm IDEA: XBRL DOCUMENT v3.19.1
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Mar. 31, 2019
Mar. 31, 2018
Cash flows from operating activities    
Net loss $ (15,030) $ (22,953)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 6,088 7,387
Share-based compensation 7,779 9,074
Amortization of debt issuance costs 1,157 1,259
Amortization and accretion of discount and premium on investments   (15)
Accretion of interest on debt 2,489 2,589
Loss on sales of investment   77
Provision for (recovery of) bad debt 3,639 (74)
Provision for write-down of inventories 2,099 1,104
Loss (gain) on disposal of property and equipment 250 (8)
Loss on extinguishment of debt   3,452
Gain on termination of lease obligation (1,007)  
Changes in assets and liabilities:    
Accounts receivable (34,971) (8,435)
Inventories (17,763) (14,656)
Prepaid expenses and other assets (7,382) 3,851
Deferred cost of revenue 520 630
Accounts payable 5,465 5,463
Accrued liabilities 1,458 (2,000)
Customer advances 107 5,321
Deferred revenues 6,375 (1,621)
Net cash used in operating activities (38,727) (9,555)
Cash flows from investing activities    
Purchases of property and equipment, net (3,236) (4,598)
Purchases of investments   (5,940)
Sales and maturities of investments   29,875
Net cash provided by (used in) investing activities (3,236) 19,337
Cash flows from financing activities    
Proceeds from employee stock plans 3,215 2,880
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   (69,797)
Net proceeds (repayments) under Revolving Credit Facility 6,498 (23,541)
Net cash provided by (used in) financing activities 14,713 (24,640)
Effect of exchange rate changes on cash, cash equivalents and restricted cash (937) 2,533
Net decrease in cash, cash equivalents and restricted cash (28,187) (12,325)
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,346 $ 72,910