Leases (Notes)
9 Months Ended
Apr. 30, 2022
Leases [Abstract]  
Lessee, Operating Leases LEASES
We have operating leases primarily for real estate properties, including corporate headquarters, customer service and sales offices, manufacturing and packaging facilities, warehouses, and research and development facilities, as well as for rail tracks, railcars and office equipment. Certain of our leases for a shared warehouse and office facility, rail track and railcars have options to extend which we are reasonably certain we will exercise and, accordingly, have been considered in the lease term used to recognize our ROU assets and lease liabilities. To determine the present value of the lease liability, we use an incremental borrowing rate, which is defined as the rate of interest that the Company would have to pay to borrow (on a collateralized basis over a similar term) an amount equal to the lease payments in similar economic environments. Further information about our accounting policy for leases is included in Note 1 of the Notes to the unaudited Condensed Consolidated Financial Statements.

We have no material finance leases, and variable costs for operating leases are immaterial for the three and nine months ended April 30, 2022. Operating lease costs are included in Cost of Sales or SG&A expenses based on the nature of the lease. The following table summarizes total lease costs for our operating leases (in thousands):
For the Three Months Ended April 30,For the Nine Months Ended April 30,
2022202120222021
Operating Lease Cost
Operating lease cost$707 $592 $2,059 $1,944 
Short-term operating lease cost123 173 431 535 

Supplemental cash flow information related to leases was as follows (in thousands):
For the Three Months Ended April 30,For the Nine Months Ended April 30,
2022202120222021
Other Information
Cash paid for amounts included in the measurement of lease liabilities:
  Operating cash flows from operating leases$633 $579 $1,830 $1,748 
Operating lease ROU assets and operating lease liabilities are separately presented on the unaudited Condensed Consolidated Balance Sheet, excluding leases with an initial term of twelve months or less. Other supplemental balance sheet information related to leases was as follows:
April 30, 2022July 31, 2021
Weighted-average remaining lease term - operating leases8.8 years9.1 years
Weighted-average discount rate - operating leases3.90%3.88%

The following table summarizes scheduled minimum future lease payments due within twelve months for operating leases with terms longer than one year for which cash flows are fixed and determinable as of April 30, (in thousands):
2022$568 
20232,039 
20241,881 
20251,749 
20261,467 
Thereafter5,661 
Total13,365 
Less: imputed interest(2,047)
Net lease obligation$11,318