XML 36 R7.htm IDEA: XBRL DOCUMENT v3.21.2
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Cash flows from operating activities:    
Net income (loss) $ (88,202) $ (129,620)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 26,808 25,852
Non-cash lease expense 4,520 2,759
Impairment of equity method investment 0 4,236
Revaluation of derivative contracts 462 (72)
Stock-based compensation expense 36,343 41,652
Loss on extinguishment of debt 0 14,098
Amortization of debt issuance costs and premium, net 1,900 (470)
Changes in operating assets and liabilities:    
Accounts receivable 41,718 (11,531)
Contract assets (15,311) (256)
Inventories (21,026) (3,532)
Deferred cost of revenue 4,984 (9,995)
Customer financing receivable 2,636 2,490
Prepaid expenses and other current assets 7,656 7,314
Other long-term assets (1,410) (3,574)
Accounts payable 29,449 8,831
Accrued warranty (2,565) (159)
Accrued expenses and other current liabilities (16,225) 13,509
Operating lease right-of-use assets and operating lease liabilities (5,140) (2,973)
Deferred revenue and customer deposits (43,428) 2,907
Other long-term liabilities 1,529 (1,701)
Net cash used in operating activities (35,302) (40,235)
Cash flows from investing activities:    
Purchase of property, plant and equipment (34,461) (19,560)
Net cash used in investing activities (34,461) (19,560)
Cash flows from financing activities:    
Proceeds from issuance of debt 0 70,000
Proceeds from issuance of debt to related parties 0 30,000
Repayment of debt (7,838) (82,248)
Repayment of debt - related parties 0 (2,105)
Debt issuance costs 0 (3,371)
Proceeds from financing obligations 7,123 0
Repayment of financing obligations (6,387) (5,111)
Distributions to noncontrolling interests and redeemable noncontrolling interests (4,762) (5,815)
Proceeds from issuance of common stock 65,668 5,186
Net cash provided by financing activities 53,804 6,536
Effect of exchange rate changes on cash, cash equivalent and restricted cash (223) 0
Net decrease in cash, cash equivalents, and restricted cash (16,182) (53,259)
Beginning of period 416,710 377,388
End of period 400,528 324,129
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 27,219 34,487
Operating cash flows from operating leases 6,132 4,482
Operating cash flows from financing leases 259 20
Cash paid during the period for income taxes 185 224
Non-cash investing and financing activities:    
Increase in recourse debt, non-current upon adoption of ASU 2020-06, net (Note 2) 121,491 0
Liabilities recorded for property, plant and equipment 11 494
Operating lease liabilities arising from obtaining right-of-use assets upon adoption of new lease guidance 0 39,775
Recognition of operating lease right-of-use asset during the year-to-date period 40,762 3,333
Recognition of financing lease right-of-use asset during the year-to-date period 1,335 251
Conversion of 5% debt financing into additional paid-in capital 0 41,130
Accrued distributions to equity investors 0 2
Accrued debt issuance costs 0 1,220
Adjustment of embedded derivative related to debt extinguishment $ 0 $ 24,071