XML 18 R7.htm IDEA: XBRL DOCUMENT v3.19.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Cash flows from operating activities:    
Net income (loss) $ (28,745) $ 44,248
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation 16,331 11,388
Amortization of intangible assets 23,168 12,071
Amortization of deferred financing costs 703 748
Accretion of debt discount 2,741 3,230
Impairment of long-lived assets 469 0
Share-based compensation 1,174 9,657
Other (gains) losses, net 832 (13,137)
Gains on investments in affiliates and impairments (42) (601)
Changes in operating assets and liabilities    
Accounts receivable, net (15,111) 30,600
Inventories, net 859 16,350
Prepaid expenses and other current assets 3,548 1,483
Accounts payable and accrued expenses (2,795) (32,508)
Refundable and accrued income taxes, net (2,059) 9,123
Deferred tax assets and liabilities 1,563 (75,775)
Other assets and liabilities (6,252) (13,882)
Net cash provided by (used in) operating activities (3,616) 2,995
Cash flows from investing activities:    
Payments to acquire business 0 (469,221)
Additions to property and equipment (11,840) (13,610)
Proceeds from the disposition of property and equipment 19 20,747
Proceeds from the sale of trading securities 0 13,775
Proceeds from investments in affiliates 42 601
Net cash used in investing activities (11,779) (447,708)
Cash flows from financing activities:    
Proceeds from long-term debt 0 393,000
Proceeds from issuance of preferred stock 0 35,000
Proceeds from issuance of Convertible Note 14,940 0
Proceeds from revolving line of credit, net 10,000 6,000
Payments on maturity of Convertible Notes (63,925) 0
Payment of long-term debt (13,376) (1,500)
Payment of deferred financing costs 0 (1,334)
Payment of preferred dividends (1,598) (612)
Purchase of the Company's Convertible Notes (3,700) 0
Repayments on capital lease obligations (114) (178)
Proceeds from issuance of common stock 15 3
Net cash provided by (used in) financing activities (57,758) 430,379
Net effect of exchange rate changes on cash, cash equivalents, and restricted cash (239) 714
Net decrease in cash, cash equivalents, and restricted cash (73,392) (13,620)
Cash, cash equivalents, and restricted cash, beginning of period 103,826 124,124
Cash, cash equivalents, and restricted cash, end of period $ 30,434 $ 110,504