Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jan. 31, 2017
Jan. 31, 2016
CASH FLOWS FROM OPERATING ACTIVITIES    
Net Income $ 6,259 $ 9,244
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 6,389 5,914
Amortization of investment net discount (5) (2)
Non-cash stock compensation expense 777 638
Excess tax benefits for share-based payments (207) (55)
Deferred income taxes 354 189
Provision for bad debts and cash discounts 131 131
Loss on the sale of fixed assets 276 202
(Increase) Decrease in assets:    
Accounts receivable (1,829) 521
Inventories 11 (1,674)
Prepaid expenses (3,784) (2,671)
Other assets (156) (118)
Increase (Decrease) in liabilities:    
Accounts payable 852 (201)
Accrued expenses (1,698) 3,295
Deferred compensation 487 104
Pension and postretirement benefits 1,001 554
Other liabilities 235 980
Total Adjustments 2,834 7,807
Net Cash Provided by Operating Activities 9,093 17,051
CASH FLOWS FROM INVESTING ACTIVITIES    
Capital expenditures (7,279) (4,795)
Proceeds from sale of property, plant and equipment 2 249
Purchases of short-term investments (11,555) (14,125)
Dispositions of short-term investments 14,386 1,225
Net Cash Used in Investing Activities (4,446) (17,446)
CASH FLOWS FROM FINANCING ACTIVITIES    
Principal payments on notes payable (3,083) (3,484)
Dividends paid (2,956) (2,783)
Purchase of treasury stock (122) (18)
Proceeds from issuance of treasury stock 0 185
Proceeds from issuance of common stock 170 96
Excess tax benefits for share-based payments 207 55
Net Cash Used in Financing Activities (5,784) (5,949)
Effect of exchange rate changes on cash and cash equivalents 68 33
Net Decrease in Cash and Cash Equivalents (1,069) (6,311)
Cash and Cash Equivalents, Beginning of Period 18,629 20,138
Cash and Cash Equivalents, End of Period 17,560 13,827
Supplemental disclosure of non-cash investing and financing activities:    
Capital expenditures accrued, but not paid 657 924
Cash dividends declared and accrued, but not paid $ 1,485 $ 1,407