Annual report pursuant to Section 13 and 15(d)

Summary of Selected Quarterly Financial Data (unaudited) (Details) - Quarterly Financial Data

v3.5.0.2
Summary of Selected Quarterly Financial Data (unaudited) (Details) - Quarterly Financial Data - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Jul. 31, 2016
Apr. 30, 2016
Jan. 31, 2016
Oct. 31, 2015
Jul. 31, 2015
Apr. 30, 2015
Jan. 31, 2015
Oct. 31, 2014
Jul. 31, 2016
Jul. 31, 2015
Jul. 31, 2014
Quarterly Financial Data [Abstract]                      
Total revenues $ 26,603 $ 26,433 $ 24,560 $ 25,177 $ 25,697 $ 23,986 $ 23,092 $ 24,824      
Gross profit 12,085 11,445 10,819 11,234 11,317 10,483 10,028 10,999      
Income (loss) before income taxes 37,068 (2,113) 7,039 4,521 8,523 (3,003) (4,206) (3,606) $ 46,515 $ (2,292) $ (9,905)
Net income (loss) $ 36,135 $ (2,115) $ 6,832 $ 4,434 $ 8,442 $ (2,907) $ (4,091) $ (3,729) $ 45,286 $ (2,285) $ (9,977)
Basic and diluted (loss) income per common share (in Dollars per share)         $ 0.18 $ (0.06) $ (0.09) $ (0.08)      
Basic income (loss) per common share (in Dollars per share) $ 0.78 $ (0.05) $ 0.15 $ 0.10         $ 0.98 $ (0.05) $ (0.23)
Diluted income (loss) per common share (in Dollars per share) $ 0.77 $ (0.05) $ 0.15 $ 0.10         $ 0.97 $ (0.05) $ (0.23)