v3.21.1
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2021
Apr. 30, 2020
Statement of Cash Flows [Abstract]    
Net income (loss) $ 4,607 $ (25,195)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization of property, plant and equipment 1,724 1,700
Amortization of intangible assets 244 451
Share-based compensation charges 640 728
Accrual for share-based 401(k) employer match expense 559 631
Unrealized loss on marketable securities 91  
Foreign exchange (gain)/loss (494) 8
Changes in operating assets and liabilities:    
Accounts receivable (2,292) 3,942
Inventories (3,159) (147)
Prepaid expenses and other assets 29 223
Accounts payable – trade (2,473) 1,211
Accrued liabilities, other current liabilities and other liabilities 803 4,330
Total adjustments (4,328) 13,077
Net cash provided by (used in) operating activities 279 (12,118)
Cash flows from investing activities:    
Capital expenditures (2,870) (719)
Purchases of marketable securities (30,023)  
Net cash used in investing activities (32,893) (719)
Cash flows from financing activities:    
Proceeds from borrowings under government programs and mortgage agreement   7,412
Proceeds from exercise of stock options 97  
Repayments under mortgage agreement and finance leases (283) (321)
Net cash (used in) provided by financing activities (186) 7,091
Effect of exchange rate changes on cash and cash equivalents 24 7
Decrease in cash and cash equivalents and restricted cash (32,776) (5,739)
Cash and cash equivalents and restricted cash - beginning of period 48,615 60,896
Total cash and cash equivalents and restricted cash - end of period 15,839 55,157
The composition of total cash and cash equivalents and restricted cash is as follows:    
Cash and cash equivalents 15,089 54,407
Restricted cash included in other assets 750 750
Total cash and cash equivalents and restricted cash $ 15,839 $ 55,157

Source