XML 53 R57.htm IDEA: XBRL DOCUMENT v3.20.2
INVENTORIES - Additional Information (Detail) - USD ($)
$ in Thousands
Jul. 31, 2020
Jul. 31, 2019
Inventory [Line Items]    
Inventories $ 763,264 $ 873,532
LIFO    
Inventory [Line Items]    
Subsidiaries valued inventory in last-in, first-out method 251,099 240,983
FIFO    
Inventory [Line Items]    
Subsidiaries valued inventory in first-in, first-out method $ 512,165 $ 632,549