XML 20 R6.htm IDEA: XBRL DOCUMENT v3.20.2
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Cash flows from operating activities:    
Net income (loss) $ (147,496) $ (252,455)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 38,888 64,948
Write-off of property, plant and equipment, net 36 2,987
Impairment of equity method investment 4,236 0
Write-off of PPA II and PPA IIIb decommissioned assets 0 25,613
Debt make-whole expense 0 5,934
Revaluation of derivative contracts (2,339) 2,955
Stock-based compensation 57,385 160,233
Loss on long-term REC purchase contract 72 61
Gain (loss) on extinguishment of debt 11,785 0
Amortization of debt issuance and premium cost, net (195) 16,295
Changes in operating assets and liabilities:    
Accounts receivable (12,654) 63,426
Inventories (22,772) (1,775)
Deferred cost of revenue 1,562 (2,344)
Customer financing receivable and other 3,790 4,142
Prepaid expenses and other current assets (2,647) 8,071
Other long-term assets (3,217) 1,294
Accounts payable 8,704 14,171
Accrued warranty (525) (4,074)
Accrued expenses and other current liabilities 3,866 5,191
Deferred revenue and customer deposits (15,658) 22,252
Other long-term liabilities (2,811) 4,560
Net cash (used in) provided by operating activities (79,990) 141,485
Cash flows from investing activities:    
Purchase of property, plant and equipment (33,066) (39,690)
Payments for acquisition of intangible assets 0 (1,478)
Proceeds from maturity of marketable securities 0 104,500
Net cash (used in) provided by investing activities (33,066) 63,332
Cash flows from financing activities:    
Proceeds from issuance of debt 300,000 0
Proceeds from issuance of debt to related parties 30,000 0
Repayment of debt (92,546) (93,263)
Repayment of debt to related parties (2,105) (1,691)
Debt make-whole payment 0 (5,934)
Debt issuance costs (13,247) 0
Proceeds from financing obligations 14,807 20,333
Repayment of financing obligations (7,828) (6,419)
Proceeds from noncontrolling interest 4,314 0
Payments to noncontrolling and redeemable noncontrolling interests 0 (43,713)
Distributions to noncontrolling and redeemable noncontrolling interests (6,103) (9,363)
Proceeds from issuance of common stock 12,745 12,623
Net cash provided by (used in) financing activities 240,037 (127,427)
Net increase in cash, cash equivalents, and restricted cash 126,981 77,390
Beginning of period 377,388 280,485
End of period 504,369 357,875
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 56,607 53,772
Cash paid during the period for taxes 353 715
Non-cash investing and financing activities:    
Liabilities recorded for property, plant and equipment 350 2,574
Liabilities recorded for noncontrolling and redeemable noncontrolling interest 0 11,971
Equity investment in PPA II assets 0 27,809
Conversion of 10% convertible promissory notes into Class A common stock 150,670 0
Conversion of 10% convertible promissory notes to related party into Class A common stock 50,800 0
Accrued distributions to Equity Investors 0 288
Accrued interest for notes 30 1,347
Adjustment of embedded derivative related to debt extinguishment $ 24,071 $ 0