XML 67 R7.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended
Oct. 31, 2019
Oct. 31, 2018
Cash flows from operating activities:    
Net income (loss) $ 4,792 $ (7,365)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation 5,589 5,533
Amortization of intangible assets 7,277 8,099
Amortization of deferred financing costs 68 247
Accretion of debt discount 409 1,051
Share-based compensation 176 792
Other gains, net (558) (944)
Gains on investments in affiliates 0 (20)
Changes in operating assets and liabilities    
Accounts receivable, net (1,564) (17,558)
Inventories, net (2,165) (3,815)
Prepaid expenses and other current assets (3,342) 2,781
Accounts payable and accrued expenses 4,625 11,301
Refundable and accrued income taxes, net 639 (442)
Other assets and liabilities 6,464 2,873
Net cash provided by operating activities 22,410 2,533
Cash flows from investing activities:    
Additions to property and equipment (4,072) (4,006)
Proceeds from the disposition of property and equipment 0 14
Proceeds from investments in affiliates 0 20
Net cash used in investing activities (4,072) (3,972)
Cash flows from financing activities:    
Payments towards revolving line of credit, net (4,000) 0
Payment of long-term debt (1,500) (1,500)
Payment of preferred dividends (536) (536)
Purchase of the Company's Convertible Notes 0 (3,700)
Repayments on capital lease obligations (33) (148)
Proceeds from issuance of common stock 6 6
Net cash used in financing activities (6,063) (5,878)
Net effect of exchange rate changes on cash, cash equivalents, and restricted cash 41 (358)
Net increase (decrease) in cash, cash equivalents, and restricted cash 12,316 (7,675)
Cash, cash equivalents, and restricted cash, beginning of period 46,064 103,826
Cash, cash equivalents, and restricted cash, end of period 58,380 96,151
Cash and cash equivalents, end of period 41,214 83,366
Funds held for clients, end of period $ 17,166 $ 12,785