Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2016
Apr. 30, 2015
CASH FLOWS FROM OPERATING ACTIVITIES    
Net Income $ 8,352 $ 6,302
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 8,991 8,955
Amortization of investment net discount (6) (1)
Non-cash stock compensation expense 962 866
Excess tax benefits for share-based payments (68) (68)
Deferred income taxes 280 431
Provision for bad debts and cash discounts 149 215
Loss on the sale of fixed assets 199 112
Gain on sale of marketable securities 0 (105)
Life Insurance Benefits 0 117
(Increase) Decrease in assets:    
Accounts receivable 2,140 (1,183)
Inventories (3,653) 198
Prepaid expenses (593) 1,655
Other assets (270) (1,438)
Increase (Decrease) in liabilities:    
Accounts payable (1,383) (691)
Accrued expenses 3,365 348
Deferred compensation 139 478
Pension and postretirement benefits 757 144
Other liabilities 48 167
Total Adjustments 11,057 9,966
Net Cash Provided by Operating Activities 19,409 16,268
CASH FLOWS FROM INVESTING ACTIVITIES    
Capital expenditures (7,052) (13,945)
Proceeds from sale of property, plant and equipment 256 22
Restricted cash 0 129
Purchases of short-term investments (26,977) (700)
Dispositions of short-term investments 18,680 2,861
Proceeds from sale of marketable securities 0 108
Proceeds from Life Insurance Policies 0 903
Net Cash Used in Investing Activities (15,093) (10,622)
CASH FLOWS FROM FINANCING ACTIVITIES    
Principal payments on notes payable (3,484) (3,500)
Dividends paid (4,190) (3,937)
Purchase of treasury stock (18) (122)
Proceeds from issuance of treasury stock 185 0
Proceeds from issuance of common stock 96 15
Excess tax benefits for share-based payments 68 68
Net Cash Used in Financing Activities (7,343) (7,476)
Effect of exchange rate changes on cash and cash equivalents 83 (21)
Net Decrease in Cash and Cash Equivalents (2,944) (1,851)
Cash and Cash Equivalents, Beginning of Period 20,138 16,230
Cash and Cash Equivalents, End of Period 17,194 14,379
Supplemental disclosure of non-cash investing and financing activities:    
Capital expenditures accrued, but not paid 353 376
Cash dividends declared and accrued, but not paid $ 1,407 $ 1,310