Annual report pursuant to Section 13 and 15(d)

SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts

v3.7.0.1
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2015
Allowance for Doubtful Accounts [Member]      
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts [Line Items]      
Balance at Beginning of period $ 3,517 $ 1,786 $ 2,142
Charged (credited) to costs and expenses 2,775 2,336 2,284
Deductions [1] 2,716 605 2,640
Balance at end of period 3,576 3,517 1,786
Valuation Allowance of Deferred Tax Assets [Member]      
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts [Line Items]      
Balance at Beginning of period 34,912 49,658 49,465
Charged (credited) to costs and expenses (2,179) (14,746) 193
Balance at end of period $ 32,733 $ 34,912 $ 49,658
[1] Write-off of uncollectible accounts receivable.