XML 52 R40.htm IDEA: XBRL DOCUMENT v3.5.0.2
Inventories - Additional Information (Detail) - USD ($)
$ in Thousands
Oct. 31, 2016
Jul. 31, 2016
Inventory [Line Items]    
Inventories $ 447,262 $ 434,004
Subsidiaries valued inventory in last-in, first-out method 230,481 219,050
Subsidiaries valued inventory in first-in, first-out method $ 216,781 $ 214,954