XML 20 R6.htm IDEA: XBRL DOCUMENT v3.7.0.1
Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
May 31, 2017
May 31, 2016
Cash flows from operating activities:    
Net income (loss) $ 177,775 $ 425,675
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 362,118 324,952
Amortization of deferred major repair costs 50,565 55,074
Equity (income) loss from investments (124,521) (131,819)
Provision for doubtful accounts 198,304 33,869
Distributions from equity investments 105,558 75,435
Unrealized (gain) loss on crack spread contingent liability (13,273) (51,321)
Long-lived asset impairment 85,431 14,428
Reserve against supplier advance payments 130,705 0
Deferred taxes (145,357) (16,356)
Other, net 25,559 (23,414)
Changes in operating assets and liabilities, net of acquisitions:    
Receivables (55,498) 120,613
Inventories (344,914) (164,652)
Derivative assets 120,294 (65,651)
Margin deposits 58,581 (23,988)
Supplier advance payments (214,538) (208,679)
Other current assets and other assets 19,289 91,095
Customer margin deposits and credit balances (76,355) 2,657
Customer advance payments (23,700) (54,136)
Accounts payable and accrued expenses 152,094 (72,161)
Derivative liabilities (229,881) 9,315
Other liabilities (53,471) (78,511)
Net cash provided by (used in) operating activities 204,765 262,425
Cash flows from investing activities:    
Acquisition of property, plant and equipment (298,015) (557,689)
Proceeds from disposition of property, plant and equipment 17,702 7,023
Expenditures for major repairs (1,146) (19,338)
Investments in joint ventures and other (13,853) (2,833,968)
Investments redeemed 7,698 24,912
Proceeds from sale of investments 6,170 19,477
Changes in notes receivable, net (104,773) (230,874)
Financing extended to customers (57,783) (31,681)
Payments from customer financing 67,126 23,005
Business acquisitions, net of cash acquired (2,253) (10,139)
Other investing activities, net 4,975 4,911
Net cash provided by (used in) investing activities (374,152) (3,604,361)
Cash flows from financing activities:    
Proceeds from lines of credit and long-term borrowings 29,890,570 21,377,619
Payments on lines of credit, long term-debt and capital lease obligations (29,362,970) (18,090,681)
Mandatorily redeemable noncontrolling interest payments 0 (153,022)
Changes in checks and drafts outstanding (118,844) 1,680
Preferred stock dividends paid (125,475) (121,499)
Retirements of equities (25,503) (17,117)
Cash patronage dividends paid (103,879) (253,150)
Other financing activities, net 1,539 (3,246)
Net cash provided by (used in) financing activities 155,438 2,740,584
Effect of exchange rate changes on cash and cash equivalents 1,865 (6,060)
Net increase (decrease) in cash and cash equivalents (12,084) (607,412)
Cash and cash equivalents at beginning of period 279,313 953,813
Cash and cash equivalents at end of period $ 267,229 $ 346,401