XML 64 R49.htm IDEA: XBRL DOCUMENT v3.20.2
LEASES - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Oct. 31, 2020
Oct. 31, 2019
Jul. 31, 2020
Lessee, Lease, Description [Line Items]      
Operating lease, cost $ 10,400 $ 8,700  
Impairment loss 2,822 $ 0 $ 3,000
Right-of-use asset, impairment loss 1,900   1,800
Impairment of leasehold 900   $ 1,200
Lease not yet commenced, undiscounted amount $ 5,500    
Minimum      
Lessee, Lease, Description [Line Items]      
Remaining lease term 1 year    
Lease not yet commenced, term of contract 2 years    
Maximum      
Lessee, Lease, Description [Line Items]      
Remaining lease term 8 years    
Lease not yet commenced, term of contract 6 years