PROPERTY, PLANT AND EQUIPMENT (Details) - USD ($) $ in Thousands |
Jul. 31, 2024 |
Jul. 31, 2023 |
|---|---|---|
| Property, Plant and Equipment [Line Items] | ||
| Lease right-of-use assets – operating | $ 43,139 | $ 47,969 |
| Lease right-of-use assets – finance | 4,772 | 5,518 |
| Total cost | 2,118,216 | 2,011,373 |
| Less: Accumulated depreciation | (727,498) | (623,565) |
| Property, plant and equipment, net | 1,390,718 | 1,387,808 |
| Land | ||
| Property, Plant and Equipment [Line Items] | ||
| Property, plant, and equipment | 151,164 | 147,633 |
| Buildings and improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Property, plant, and equipment | 1,053,812 | 1,038,394 |
| Machinery and equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Property, plant, and equipment | 738,535 | 672,499 |
| Rental vehicles | ||
| Property, Plant and Equipment [Line Items] | ||
| Property, plant, and equipment | $ 126,794 | $ 99,360 |