XML 23 R8.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 loss $ (1,056,907) $ (1,527,333)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation, amortization and impairment 1,046,149 901,488
Stock-based compensation 418,241 338,983
Amortization of debt discounts and issuance costs 82,123 74,419
Inventory write-downs 115,672 46,098
Loss on disposals of fixed assets 47,931 118,850
Foreign currency transaction (gains) losses (10,848) 6,185
Non-cash interest and other operating activities 158,699 5,685
Operating cash flow related to repayment of discounted convertible notes (188,107)  
Changes in operating assets and liabilities, net of effect of business combinations:    
Accounts receivable (168,312) (98,509)
Inventory (352,428) (1,055,556)
Operating lease vehicles (175,898) (186,208)
Prepaid expenses and other current assets (139,141) (95,194)
Other non-current assets 42,165 (59,446)
Accounts payable and accrued liabilities 49,898 909,720
Deferred revenue 476,556 107,497
Customer deposits (160,376) 42,920
Resale value guarantee (76,332) (39,563)
Other long-term liabilities 114,915 (18,076)
Net cash provided by (used in) operating activities 224,000 (528,040)
Cash Flows from Investing Activities    
Purchases of property and equipment excluding finance leases, net of sales (529,609) (1,265,475)
Purchases of solar energy systems (43,458) (140,375)
Purchase of intangible assets (5,333)  
Business combinations, net of cash acquired 31,012 (5,604)
Net cash used in investing activities (547,388) (1,411,454)
Cash Flows from Financing Activities    
Proceeds from issuances of common stock in public offerings 848,232  
Proceeds from issuances of convertible and other debt 5,007,481 3,043,227
Repayments of convertible and other debt (3,700,332) (2,268,716)
Repayments of borrowings issued to related parties   (17,500)
Collateralized lease repayments (219,323) (200,518)
Proceeds from exercises of stock options and other stock issuances 95,585 125,071
Principal payments on finance leases (142,571) (48,182)
Common stock and debt issuance costs (30,376) (3,671)
Purchase of convertible note hedges (475,824)  
Proceeds from issuance of warrants 174,432  
Proceeds from investments by noncontrolling interests in subsidiaries 88,866 253,037
Distributions paid to noncontrolling interests in subsidiaries (148,759) (109,545)
Payments for buy-outs of noncontrolling interests in subsidiaries (7,589) (2,921)
Net cash provided by financing activities 1,489,822 770,282
Effect of exchange rate changes on cash and cash equivalents and restricted cash 5,471 (12,509)
Net increase (decrease) in cash and cash equivalents and restricted cash 1,171,905 (1,181,721)
Cash and cash equivalents and restricted cash, beginning of period 4,276,388 3,964,959
Cash and cash equivalents and restricted cash, end of period 5,448,293 2,783,238
Supplemental Non-Cash Investing and Financing Activities    
Equity issued in connection with business combination 207,222  
Acquisitions of property and equipment included in liabilities $ 287,002 335,048
Estimated fair value of facilities under build-to-suit leases   $ 61,709