XML 12 R7.htm IDEA: XBRL DOCUMENT v3.20.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2020
Apr. 30, 2019
Cash flows from operating activities:    
Net loss $ (4,924) $ (28,745)
Adjustments to reconcile net loss to cash flows from operating activities:    
Depreciation 17,240 16,331
Amortization of intangible assets 20,719 23,168
Amortization of deferred financing costs 285 703
Accretion of debt discount 1,240 2,741
Impairment of long-lived assets 0 469
Share-based compensation 581 1,174
Other (gains) losses, net (2,509) 832
Gains on investments in affiliates 0 (42)
Changes in operating assets and liabilities    
Accounts receivable, net 28,492 (15,111)
Inventories, net 3,847 859
Prepaid expenses and other current assets 7,538 3,548
Accounts payable and accrued expenses (14,547) (2,795)
Refundable and accrued income taxes, net (793) (2,059)
Other assets and liabilities 2,882 (4,689)
Net cash provided by (used in) operating activities 60,051 (3,616)
Cash flows from investing activities:    
Additions of property and equipment (11,477) (11,840)
Proceeds from the disposition of property and equipment 12 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,302) (11,779)
Cash flows from financing activities:    
Proceeds from issuance of convertible note 0 14,940
Proceeds from revolving lines of credit, net 19,000 10,000
Payments on maturity of convertible notes 0 (63,925)
Payment of long-term debt (3,076) (13,376)
Payment of preferred dividends (1,563) (1,598)
Payment of debt financing and amendment costs (914) 0
Purchase of the Company's convertible notes 0 (3,700)
Repayments on capital lease obligations (83) (114)
Proceeds from issuance of common stock 8 15
Net cash provided by (used in) financing activities 13,372 (57,758)
Net effect of exchange rate changes on cash, cash equivalents and restricted cash (798) (239)
Net increase (decrease) in cash, cash equivalents and restricted cash 61,323 (73,392)
Cash, cash equivalents and restricted cash, beginning of period 46,064 103,826
Cash, cash equivalents and restricted cash, end of period 107,387 30,434
Cash and cash equivalents, end of period 90,189 20,364
Funds held for clients, end of period $ 17,198 $ 10,070