Annual report pursuant to Section 13 and 15(d)

Summary of significant accounting policies (Details) - Impact to consolidated statements of operations due to adoption of ASU

v3.19.3
Summary of significant accounting policies (Details) - Impact to consolidated statements of operations due to adoption of ASU - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Jul. 31, 2019
Apr. 30, 2019
Jan. 31, 2019
Oct. 31, 2018
Jul. 31, 2018
Apr. 30, 2018
Jan. 31, 2018
Oct. 31, 2017
Jul. 31, 2019
Jul. 31, 2018
Jul. 31, 2017
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Total Revenues                 $ 81,170 $ 101,013 $ 105,086
Selling, general and administrative expenses                 44,265 44,455 44,149
Net loss $ (5,390) $ 22,265 $ (8,408) $ (5,978) $ (5,758) $ (3,016) $ (901) $ (640) 2,489 (10,321) (2,504)
Consolidated Statements of Cash Flows July 31, 2018:                      
Changes in operating assets and liabilities: Accounts receivable                 2,404 1,915 (469)
Consolidated balance sheet July 31, 2018:                      
Accounts receivable         13,292         13,292  
Less: Allowance for doubtful accounts         145         145  
Accounts receivable, net of allowance for doubtful accounts $ 10,738       13,147       $ 10,738 13,147  
Previously Reported [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Total Revenues                   104,713 107,804
Provision for uncollectible accounts receivable                   3,690 2,775
Selling, general and administrative expenses                   44,465 44,092
Net loss                   (10,321) (2,504)
Consolidated Statements of Cash Flows July 31, 2018:                      
Provision for uncollectible accounts receivable                   3,690 2,775
Changes in operating assets and liabilities: Accounts receivable                   (1,775) (3,244)
Consolidated balance sheet July 31, 2018:                      
Accounts receivable         15,815         15,815  
Less: Allowance for doubtful accounts         2,668         2,668  
Accounts receivable, net of allowance for doubtful accounts         13,147         13,147  
Accounting Standards Update 2014-09 [Member] | Restatement Adjustment [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Total Revenues                   (3,700) (2,718)
Provision for uncollectible accounts receivable                   (3,700) (2,718)
Consolidated Statements of Cash Flows July 31, 2018:                      
Provision for uncollectible accounts receivable                   (3,700) (2,718)
Changes in operating assets and liabilities: Accounts receivable                   3,700 2,718
Consolidated balance sheet July 31, 2018:                      
Accounts receivable         (2,523)         (2,523)  
Less: Allowance for doubtful accounts         $ (2,523)         (2,523)  
Accounting Standards Update 2014-09 [Member] | Reclassification Of Residual [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Provision for uncollectible accounts receivable                   10 (57)
Selling, general and administrative expenses                   (10) 57
Consolidated Statements of Cash Flows July 31, 2018:                      
Provision for uncollectible accounts receivable                   10 (57)
Changes in operating assets and liabilities: Accounts receivable                   $ (10) $ 57