INVENTORIES - Additional Information (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jul. 31, 2024 |
Jul. 31, 2023 |
|
| Inventory [Line Items] | ||
| Inventories | $ 1,514,748 | $ 1,815,674 |
| Subsidiaries valued inventory in first-in, first-out method | 1,109,062 | 1,224,069 |
| Subsidiaries valued inventory in last-in, first-out method | 405,686 | 591,605 |
| Effect of liquidation on net income | 29,200 | $ 8,300 |
| North American Motorized | ||
| Inventory [Line Items] | ||
| Effect of liquidation on net income | $ 23,900 | |