XML 108 R89.htm IDEA: XBRL DOCUMENT v3.8.0.1
Income Taxes (Details 3) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Oct. 31, 2016
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2015
Income Taxes [Abstract]        
U.S. federal income tax at statutory rate   $ (2,667) $ (10,314) $ (32,271)
Valuation allowance   626
Foreign tax rate differential   3,107 6,035 25,757
Nondeductible expenses   457 487 659
Other   64 (67) (73)
Prior year tax benefit (expense)   494 (231)
State and local income tax, net of federal benefit   (60) (20) (160)
Benefit from (provision for) income taxes $ (16,600) $ 2,021 $ (4,110) $ (6,088)