Annual report pursuant to Section 13 and 15(d)

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

v3.7.0.1
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, 2017
Apr. 30, 2017
Jan. 31, 2017
Oct. 31, 2016
Jul. 31, 2016
Apr. 30, 2016
Jan. 31, 2016
Oct. 31, 2015
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2015
Quarterly Financial Data [Abstract]                      
Total revenues $ 28,171 $ 27,089 $ 26,260 $ 26,284 $ 26,603 $ 26,433 $ 24,560 $ 25,177      
Gross profit 12,386 12,173 11,688 12,079 12,085 11,445 10,819 11,234      
Income (loss) before income taxes 71 (39) (1,000) (1,454) 37,068 (2,113) 7,039 4,521 $ (2,422) $ 46,515 $ (2,292)
Net income (loss) $ 94 $ (71) $ (1,053) $ (1,474) $ 36,135 $ (2,115) $ 6,832 $ 4,434 $ (2,504) $ 45,286 $ (2,285)
Basic income (loss) per common share (in Dollars per share) $ 0.00 $ 0.00 $ (0.02) $ (0.03) $ 0.78 $ (0.05) $ 0.15 $ 0.10 $ (0.05) $ 0.98 $ (0.05)
Diluted income (loss) per common share (in Dollars per share) $ 0.00 $ 0.00 $ (0.02) $ (0.03) $ 0.77 $ (0.05) $ 0.15 $ 0.10 $ (0.05) $ 0.97 $ (0.05)