XML 57 R43.htm IDEA: XBRL DOCUMENT v3.20.1
Debt - Additional information (Detail) - USD ($)
3 Months Ended 9 Months Ended
May 05, 2020
Feb. 28, 2019
Apr. 30, 2020
Apr. 30, 2019
Oct. 31, 2019
Jan. 31, 2020
Debt [Line Items]            
Term loan     $ 20,000,000     $ 20,000,000
Amortization of debt discount     126,000 $ 108,000    
Loss on extinguishment of debt     0 1,073,000    
Loan facility fee payment     100,000 0    
Amended And Restated Loan And Security Agreement            
Debt [Line Items]            
Debt instrument, fee percentage   2.75%        
Final payment accrual charged to interest expense     257,000      
Number of securities called by warrants   150,274        
Exercise price (in dollars per share)   $ 8.02        
Warrant liability   $ 833,000        
Prepayment fee percentage before second anniversary of loan funding   3.00%        
Prepayment fee percentage between second and third anniversary of loan funding   2.00%        
Prepayment fee percentage after third anniversary of loan funding   1.00%        
Interest expense     311,000      
Amortization of debt discount     $ 39,000      
Effective interest rate     6.20%      
Term loan            
Debt [Line Items]            
Term loan   $ 20,000,000        
Term loan | Subsequent Event            
Debt [Line Items]            
Repayments of debt $ 20,000,000          
Prime Rate | Amended And Restated Loan And Security Agreement | Before EBITDA Benchmark            
Debt [Line Items]            
Interest rate   1.50%        
Prime Rate | Amended And Restated Loan And Security Agreement | After EBITDA Benchmark            
Debt [Line Items]            
Interest rate   0.75%        
Revolving Credit Facility | Amended And Restated Loan And Security Agreement            
Debt [Line Items]            
Maximum borrowing capacity   $ 25,000,000 $ 25,000,000      
Debt instrument, term         5 years  
Debt instrument, fee percentage     0.15%      
Interest expense     $ 36,000      
Amortization of debt discount     $ 32,000      
Borrowing base as a percentage of accounts receivable     80.00%      
Line of credit, facility annual fee for first three years     $ 100,000      
Loan facility fee payment     100,000      
Line of credit, facility annual fee for fourth and fifth years     $ 75,000      
Line of credit facility termination fee percentage     1.50%      
Revolving Credit Facility | Amended And Restated Loan And Security Agreement | Before EBITDA Benchmark            
Debt [Line Items]            
Stated interest rate     5.00%      
Revolving Credit Facility | Amended And Restated Loan And Security Agreement | After EBITDA Benchmark            
Debt [Line Items]            
Stated interest rate     4.75%      
Revolving Credit Facility | Second Amended And Restated Loan And Security Agreement | Subsequent Event            
Debt [Line Items]            
Maximum borrowing capacity $ 50,000,000          
Stated interest rate 4.50%          
Revolving Credit Facility | Prime Rate | Before EBITDA Benchmark            
Debt [Line Items]            
Interest rate     (0.50%)      
Revolving Credit Facility | Prime Rate | After EBITDA Benchmark            
Debt [Line Items]            
Interest rate     (0.75%)      
Term Loan B Advance            
Debt [Line Items]            
Debt instrument, term   36 months        
Term Loan B Advance | Amended And Restated Loan And Security Agreement            
Debt [Line Items]            
Maximum borrowing capacity   $ 10,000        
Term Loan C Advance            
Debt [Line Items]            
Debt instrument, term   36 months        
Term Loan C Advance | Amended And Restated Loan And Security Agreement            
Debt [Line Items]            
Maximum borrowing capacity   $ 15,000,000        
Loans Payable            
Debt [Line Items]            
Loss on extinguishment of debt       1,073,000    
Write off of deferred debt issuance cost       773,000    
Debt prepayment cost       300,000    
Debt extinguishment and modification fee       $ 112,000