XML 20 R6.htm IDEA: XBRL DOCUMENT v3.10.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Cash flows from operating activities:    
Net loss attributable to common stockholders $ (63,393) $ (123,007)
Adjustments to reconcile net loss to net cash used in operating activities:    
Loss attributable to noncontrolling and redeemable noncontrolling interests (9,143) (9,979)
Depreciation 21,554 23,612
Write off of property, plant and equipment, net 661 5
Revaluation of derivative contracts 28,611 (1,278)
Stock-based compensation 15,773 14,663
Loss on long-term REC purchase contract 100 48
Revaluation of preferred stock warrants (7,456) 237
Common stock warrant valuation (166) 0
Common stock warrant valuation 520 533
Amortization of debt issuance cost 1,938 1,325
Amortization of debt discount from embedded derivatives 11,962 20,634
Changes in operating assets and liabilities:    
Accounts receivable (6,486) (5,272)
Inventories, net (46,172) (17,612)
Deferred cost of revenue 48,760 (34,936)
Customer financing receivable and others 2,439 2,953
Prepaid expenses and other current assets 4,544 (940)
Other long-term assets 15 2,450
Accounts payable 5,217 (13,331)
Accrued warranty (1,883) (6,591)
Accrued other current liabilities (12,815) 6,094
Deferred revenue and customer deposits (31,817) 35,896
Other long-term liabilities 18,652 24,921
Net cash used in operating activities (18,585) (79,575)
Cash flows from investing activities:    
Purchase of property, plant and equipment (1,595) (2,265)
Purchase of marketable securities (15,732) 0
Maturities of marketable securities 27,000 0
Net cash provided by (used in) investing activities 9,673 (2,265)
Cash flows from financing activities:    
Borrowings from issuance of debt 0 100,000
Repayment of debt (9,201) (11,945)
Repayment of debt to related parties (627) (409)
Debt issuance costs 0 (6,108)
Proceeds from noncontrolling and redeemable noncontrolling interests 0 13,652
Distributions to noncontrolling and redeemable noncontrolling interests (11,582) (17,728)
Proceeds from issuance of common stock 742 227
Payments of initial public offering issuance costs (1,160) (533)
Net cash provided by (used in) financing activities (21,828) 77,156
Net decrease in cash, cash equivalents, and restricted cash (30,740) (4,684)
Beginning of period 180,612 217,915
End of period 149,872 213,231
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 16,540 11,318
Cash paid during the period for taxes 625 121
Non-cash investing and financing activities:    
Liabilities recorded for property, plant and equipment 512 145
Liabilities recorded for intangible assets 169 0
Issuance of common stock 0 1,816
Issuance of restricted stock 532 0
Accrued distributions to Equity Investors 566 567
Accrued interest and issuance for notes 16,920 13,913
Accrued interest and issuance for notes to related parties $ 1,195 $ 2,071