XML 40 R29.htm IDEA: XBRL DOCUMENT v3.22.1
DEBT - Schedule of Long-term Debt (Details) - USD ($)
$ in Thousands
Apr. 30, 2022
Jul. 31, 2021
Debt Instrument [Line Items]    
Total debt, excluding obligations under leases $ 75,639 $ 73,803
Less current portion 7,466 6,976
Total long-term debt, excluding obligations under leases 68,173 66,827
Line of Credit | Secured Debt    
Debt Instrument [Line Items]    
Total debt, excluding obligations under leases 51,745 47,025
Line of Credit | Medium-term Notes    
Debt Instrument [Line Items]    
Total debt, excluding obligations under leases 18,407 21,104
Notes Payable to Banks    
Debt Instrument [Line Items]    
Total debt, excluding obligations under leases $ 5,487 $ 5,674