XML 31 R6.htm IDEA: XBRL DOCUMENT v3.19.2
Consolidated Statements of Cash Flows (unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Cash flows from operating activities:    
Net income (loss) $ (155,504) $ (72,536)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and Amortization 31,023 21,554
Write-off of property, plant and equipment, net 2,704 661
Write-off of PPA II decommissioned assets 25,613 0
Debt make-whole penalty 5,934 0
Revaluation of derivative contracts 555 28,611
Stock-based compensation 115,100 15,773
Loss on long-term REC purchase contract 60 100
Revaluation of stock warrants 0 (7,456)
Revaluation of preferred stock warrants 0 (166)
Amortization of debt issuance cost 11,255 14,420
Changes in operating assets and liabilities:    
Accounts receivable 46,591 (6,486)
Inventories 27,542 (46,172)
Deferred cost of revenue 19,198 48,760
Customer financing receivable and other 2,713 2,439
Prepaid expenses and other current assets 8,477 4,544
Other long-term assets 1,028 15
Accounts payable (5,461) 5,217
Accrued warranty (6,843) (1,883)
Accrued other current liabilities 7,213 (12,815)
Deferred revenue and customer deposits (25,411) (31,817)
Other long-term liabilities 3,419 18,652
Net cash provided by (used in) operating activities 115,206 (18,585)
Cash flows from investing activities:    
Purchase of property, plant and equipment (18,882) (1,595)
Payments for acquisition of intangible assets (970) 0
Purchase of marketable securities 0 (15,732)
Proceeds from maturity of marketable securities 104,500 27,000
Net cash provided by investing activities 84,648 9,673
Cash flows from financing activities:    
Repayment of debt (83,997) (9,201)
Repayment of debt to related parties (1,220) (627)
Debt make-whole payment (5,934) 0
Payments to redeemable noncontrolling interests related to the PPA II decommissioning (18,690) 0
Distributions to noncontrolling and redeemable noncontrolling interests (7,753) (11,582)
Proceeds from issuance of common stock 8,321 742
Payments of initial public offering issuance costs 0 (1,160)
Net cash used in financing activities (109,273) (21,828)
Net increase (decrease) in cash, cash equivalents, and restricted cash 90,581 (30,740)
Beginning of period 280,485 180,612
End of period 371,066 149,872
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 23,867 16,540
Cash paid during the period for taxes 497 625
Non-cash investing and financing activities:    
Liabilities recorded for property, plant and equipment 4,662 512
Liabilities recorded for intangible assets 0 169
Liabilities recorded for mandatory redeemable noncontrolling interest 36,994 0
Equity investment in PPA II assets 27,809 0
Issuance of restricted stock 0 532
Accrued distributions to Equity Investors 566 566
Accrued interest and issuance for notes 888 16,920
Accrued interest and issuance for notes to related parties $ 0 $ 1,195