XML 46 R7.htm IDEA: XBRL DOCUMENT v3.19.3
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2019
Jul. 31, 2018
Cash flows from operating activities:    
Net income (loss) $ (66,727) $ 36,715
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation 22,058 16,791
Amortization of intangible assets 30,446 20,285
Amortization of deferred financing costs 771 1,072
Accretion of debt discount 3,433 4,384
Impairment of long-lived assets 3,015 (91)
Share-based compensation 1,267 10,801
Other gains, net (4,603) (15,266)
Gains on investments in affiliates (42) (801)
Changes in operating assets and liabilities, net of business acquired:    
Accounts receivable, net (14,090) 29,735
Inventories, net 2,482 19,971
Prepaid expenses and other current assets 5,519 4,797
Accounts payable and accrued expenses 36,486 (39,945)
Refundable and accrued income taxes, net (3,045) 6,524
Deferred tax assets and liabilities 1,563 (78,794)
Other assets and liabilities 2,316 (6,176)
Net cash provided by operating activities 20,849 10,002
Cash flows from investing activities:    
Payments to acquire business 0 (469,221)
Additions to property and equipment (14,539) (18,423)
Proceeds from the disposition of property and equipment 19 20,748
Proceeds from the sale of Trading Securities 0 13,775
Proceeds from investments in affiliates 42 801
Net cash used in investing activities (14,478) (452,320)
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 6,000 0
Payments on maturity of Convertible Notes (63,925) 0
Payment of long-term debt (14,879) (3,000)
Payment of deferred financing costs 0 (1,334)
Payment of preferred dividends (2,129) (1,143)
Purchase of the Company's Convertible Notes (3,700) 0
Repayments on capital lease obligations (134) (652)
Proceeds from issuance of common stock 15 8
Net cash provided by (used in) financing activities (63,812) 421,879
Net effect of exchange rate changes on cash and cash equivalents (321) 141
Net decrease in cash, cash equivalents and restricted cash (57,762) (20,298)
Cash, cash equivalents and restricted cash, beginning of period 103,826 124,124
Cash, cash equivalents and restricted cash, end of period $ 46,064 $ 103,826