Quarterly report pursuant to Section 13 or 15(d)

Basis of Presentation (Details) - Impact to consolidated statements of operations due to adoption of ASU

v3.19.2
Basis of Presentation (Details) - Impact to consolidated statements of operations due to adoption of ASU - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Jul. 31, 2018
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Total Revenues $ 19,662 $ 25,230 $ 60,249 $ 78,258  
Selling, general and administrative expenses 10,920 11,021 33,387 32,975  
Net loss 22,265 (3,016) 7,876 (4,557)  
Consolidated Statements of Cash Flows April 30, 2018:          
Changes in operating assets and liabilities: Accounts receivable     1,605 756  
Consolidated balance sheet July 31, 2018:          
Accounts receivable         $ 13,292
Less: Allowance for doubtful accounts         145
Accounts receivable, net of allowance for doubtful accounts $ 11,441   $ 11,441   13,147
Previously Reported [Member]          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Total Revenues   25,630   80,258  
Provision for uncollectible accounts receivable   396   1,989  
Selling, general and administrative expenses   11,025   32,986  
Net loss   (3,016)   (4,557)  
Consolidated Statements of Cash Flows April 30, 2018:          
Provision for uncollectible accounts receivable       1,989  
Changes in operating assets and liabilities: Accounts receivable       (1,233)  
Consolidated balance sheet July 31, 2018:          
Accounts receivable         15,815
Less: Allowance for doubtful accounts         2,668
Accounts receivable, net of allowance for doubtful accounts         13,147
Accounting Standards Update 2014-09 [Member] | Restatement Adjustment [Member]          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Total Revenues   (400)   (2,000)  
Provision for uncollectible accounts receivable   (400)   (2,000)  
Consolidated Statements of Cash Flows April 30, 2018:          
Provision for uncollectible accounts receivable       (2,000)  
Changes in operating assets and liabilities: Accounts receivable       2,000  
Consolidated balance sheet July 31, 2018:          
Accounts receivable         (2,523)
Less: Allowance for doubtful accounts         $ (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   4   11  
Selling, general and administrative expenses   $ (4)   (11)  
Consolidated Statements of Cash Flows April 30, 2018:          
Provision for uncollectible accounts receivable       11  
Changes in operating assets and liabilities: Accounts receivable       $ (11)