Inventories (Details) - USD ($) $ in Thousands |
12 Months Ended | ||||
|---|---|---|---|---|---|
Oct. 31, 2018 |
Oct. 31, 2017 |
Oct. 31, 2016 |
Oct. 31, 2018 |
Oct. 31, 2017 |
|
| Inventories | |||||
| Raw materials | $ 67,468 | $ 52,898 | |||
| Work-in-process | 9,589 | 18,623 | |||
| Finished goods | 188,575 | 185,488 | |||
| Deferred cost of goods sold | 48,057 | 61,340 | |||
| Inventories before provision | 313,689 | 318,349 | |||
| Provision for excess and obsolescence | $ (51,206) | $ (62,503) | $ (53,001) | (50,938) | (51,206) |
| Total inventories | $ 262,751 | $ 267,143 | |||
| Reserve for excess and obsolete inventory [Roll Forward] | |||||
| Valuation allowance, beginning balance | 51,206 | 62,503 | 53,001 | ||
| Provisions | 30,615 | 35,459 | 33,713 | ||
| Disposals | 30,883 | 46,756 | 24,211 | ||
| Valuation allowance, ending balance | $ 50,938 | $ 51,206 | $ 62,503 | ||