XML 17 R6.htm IDEA: XBRL DOCUMENT v3.4.0.3
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2016
Apr. 30, 2015
Cash flows from operating activities:    
Net loss $ (41,570) $ (13,440)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation 5,820 6,632
Amortization of intangible assets   667
Amortization of deferred financing costs 561 415
Accretion of debt discount 3,864 3,305
Impairment of long-lived assets 305  
Share-based compensation 926 1,297
Non-operating (gains) losses, net 5,869 (6,761)
(Gains) of affiliates and impairments (533) 4,809
Changes in operating assets and liabilities:    
Trade accounts receivable, net 10,175 (3,519)
Inventories 7,999 (4,030)
Prepaid expenses and other current assets (3,128) (15,589)
Accounts payable, accrued restructuring and accrued expenses (12,880) 57,611
Refundable and accrued income taxes, net 2,411 2,993
Other assets and liabilities (2,114) 16,929
Net cash provided by (used in) operating activities (22,295) 51,319
Cash flows from investing activities:    
Additions to property and equipment (5,796) (6,894)
Proceeds from the disposition of property and equipment 1,318  
Sale (purchase) of trading securities 57,056 (69,221)
Investments in affiliates (42) (323)
Proceeds from investments in affiliates 575 408
Net cash provided by (used in) investing activities 53,111 (76,030)
Cash flows from financing activities:    
Purchase of the Company's Convertible Notes (359)  
Repayments on capital lease obligations (173) (151)
Net repayments of revolving line of credit   (4,453)
Proceeds from issuance of common stock 38 42
Repurchase of common stock (127)  
Net cash used in financing activities (621) (4,562)
Net effect of exchange rate changes on cash and cash equivalents 10 (2,817)
Net increase (decrease) in cash and cash equivalents 30,205 (32,090)
Cash and cash equivalents at beginning of period 119,431 183,515
Cash and cash equivalents at end of period $ 149,636 $ 151,425