XML 59 R7.htm IDEA: XBRL DOCUMENT v3.20.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2020
Jul. 31, 2019
Cash flows from operating activities:    
Net loss $ (5,284) $ (66,727)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation 23,075 22,058
Amortization of intangible assets 27,255 30,446
Amortization of deferred financing costs 435 771
Accretion of debt discount 622 3,433
Impairment of long-lived assets 0 3,015
Share-based compensation 720 1,267
Other gains, net (2,098) (4,603)
Gains on investments in affiliates 0 (42)
Changes in operating assets and liabilities:    
Accounts receivable, net 20,305 (14,090)
Inventories, net 8,510 2,482
Prepaid expenses and other current assets 12,396 5,519
Accounts payable and accrued expenses (17,464) 36,486
Refundable and accrued income taxes, net (630) (1,482)
Other assets and liabilities 3,782 2,316
Net cash provided by operating activities 71,624 20,849
Cash flows from investing activities:    
Additions to property and equipment (12,070) (14,539)
Proceeds from the disposition of property and equipment 21 19
Proceeds from the sale of available-for-sale securities 163 0
Proceeds from investments in affiliates 0 42
Net cash used in investing activities (11,886) (14,478)
Cash flows from financing activities:    
Proceeds from issuance of convertible note 0 14,940
Proceeds from the Cerberus revolving facility 19,000 10,000
Payments on the Cerberus revolving facility (25,000) (4,000)
Payments on maturity of convertible notes 0 (63,925)
Payments of long-term debt (3,154) (14,879)
Payments of debt financing and amendment costs (914) 0
Payments of preferred dividends (2,135) (2,129)
Purchases of the Company's convertible notes 0 (3,700)
Repayments on capital lease obligations (100)  
Repayments on capital lease obligations   (134)
Proceeds from issuance of common stock 19 15
Net cash used in financing activities (12,284) (63,812)
Net effect of exchange rate changes on cash and cash equivalents 1,124 (321)
Net increase (decrease) in cash, cash equivalents and restricted cash 48,578 (57,762)
Cash, cash equivalents and restricted cash, beginning of period 46,064 103,826
Cash, cash equivalents and restricted cash, end of period $ 94,642 $ 46,064