XML 73 R62.htm IDEA: XBRL DOCUMENT v3.19.1
EARNINGS (LOSS) PER SHARE - Additional Information (Detail) - shares
shares in Millions
3 Months Ended 9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Earnings Per Share [Abstract]        
Common stock equivalent shares excluded from the denominator in the calculation of diluted loss per share 22.5 29.6 19.6 0.5