XML 15 R42.htm IDEA: XBRL DOCUMENT v3.20.1
CONVERTIBLE SENIOR NOTES - Proceeds from Notes (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 9 Months Ended
Jan. 31, 2018
Apr. 30, 2020
Apr. 30, 2019
Apr. 30, 2020
Apr. 30, 2019
Jul. 31, 2019
Debt Instrument [Line Items]            
Payments for convertible note hedges $ (143,200)          
Proceeds from issuance of warrants 88,000          
Convertible Debt            
Debt Instrument [Line Items]            
Principal amount 575,000 $ 575,000   $ 575,000   $ 575,000
Less: initial purchasers' discount (10,781)          
Payments for convertible note hedges (143,175)          
Proceeds from issuance of warrants 87,975          
Debt issuance cost, gross, noncurrent 707          
Less: other issuance costs   $ (417) $ (390) $ (1,231) $ (1,152)  
Net proceeds $ 508,312