Annual report pursuant to Section 13 and 15(d)

Summary of significant accounting policies (Details) - Allowance for doubtful accounts

v3.7.0.1
Summary of significant accounting policies (Details) - Allowance for doubtful accounts - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2015
Allowance for doubtful accounts [Abstract]      
Beginning balance $ 3,517 $ 1,786  
Provision for doubtful accounts 2,775 2,336 $ 2,284
Write-offs (2,716) (605)  
Ending balance $ 3,576 $ 3,517 $ 1,786