XML 63 R49.htm IDEA: XBRL DOCUMENT v3.19.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, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Jul. 31, 2018
Debt Instrument [Line Items]            
Payments for convertible note hedges       $ 0 $ (143,175)  
Proceeds from issuance of warrants       0 87,975  
Net proceeds         563,937  
Convertible Debt            
Debt Instrument [Line Items]            
Principal amount   $ 575,000 $ 575,000 575,000 575,000 $ 575,000
Less: initial purchasers' discount     (10,781)   (10,781)  
Payments for convertible note hedges $ (143,175)          
Proceeds from issuance of warrants 87,975          
Debt issuance cost, gross, noncurrent     707   707  
Less: other issuance costs   $ (390) $ (366) $ (1,152) $ (404)  
Net proceeds $ 508,312