v3.20.2
CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED) - USD ($)
$ in Thousands
3 Months Ended
Oct. 31, 2020
Oct. 31, 2019
Cash flows from operating activities:    
Net income (loss) $ 299 $ (7,648)
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation and amortization of property, plant and equipment 585 579
Amortization of intangible assets 75 146
Share-based compensation charges 167 219
Accrual for share-based 401(k) employer match expense 211 207
Foreign exchange loss (gain) 152 (217)
Changes in operating assets and liabilities:    
Accounts receivable (2,865) 890
Inventories (340) 310
Prepaid expenses and other assets (314) 517
Accounts payable – trade (658) 1,325
Accrued liabilities, other current liabilities and other liabilities 1,480 1,606
Total adjustments (1,507) 5,582
Net cash used in operating activities (1,208) (2,066)
Cash flows from investing activities:    
Capital expenditures (617) (274)
Net cash used in investing activities (617) (274)
Cash flows from financing activities:    
Repayments under mortgage agreement and finance leases (113) (105)
Cost to obtain loan (66)
Net cash used in financing activities (113) (171)
Effect of exchange rate changes on cash and cash equivalents (13) 8
Decrease in cash and cash equivalents and restricted cash (1,951) (2,503)
Cash and cash equivalents and restricted cash - beginning of period 48,615 60,146
Total cash and cash equivalents and restricted cash - end of period 46,664 57,643
The composition of total cash and cash equivalents and restricted cash is as follows:    
Cash and cash equivalents 45,914 56,893
Restricted cash included in other assets 750 750
Total cash and cash equivalents and restricted cash $ 46,664 $ 57,643

Source