XML 78 R62.htm IDEA: XBRL DOCUMENT v3.23.3
INVENTORIES - Additional Information (Details) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2023
Jul. 31, 2022
Inventory [Line Items]    
Inventories $ 1,815,674 $ 1,892,225
Effect of LIFO inventory liquidation on income 8,300  
FIFO    
Inventory [Line Items]    
Subsidiaries valued inventory in first-in, first-out method 1,224,069 1,170,554
LIFO    
Inventory [Line Items]    
Subsidiaries valued inventory in last-in, first-out method $ 591,605 $ 721,671