XML 69 R53.htm IDEA: XBRL DOCUMENT v3.8.0.1
LINE OF CREDIT AND LONG-TERM DEBT (Details Narrative)
1 Months Ended 2 Months Ended 9 Months Ended 12 Months Ended
Dec. 31, 2017
USD ($)
Feb. 01, 2017
USD ($)
Jan. 29, 2016
USD ($)
extension
Jan. 28, 2016
USD ($)
Mar. 27, 2015
USD ($)
May 31, 2014
USD ($)
Dec. 30, 2017
USD ($)
Nov. 04, 2017
USD ($)
Dec. 31, 2017
USD ($)
Dec. 31, 2016
USD ($)
Nov. 09, 2015
USD ($)
May 02, 2014
lease
Line of Credit Facility [Line Items]                        
Long-term debt, gross $ 20,979,202               $ 20,979,202 $ 14,600,763    
Omega Refining                        
Line of Credit Facility [Line Items]                        
Number of capital leases assumed | lease                       2
Term loan                        
Line of Credit Facility [Line Items]                        
Repayments of debt       $ 16,100,000                
Encina Business Credit SPV, LLC | Revolving Credit Facility                        
Line of Credit Facility [Line Items]                        
Long-term debt, gross 4,591,527               4,591,527 0    
Term loan, face 10,000,000               10,000,000      
Encina Business Credit, LLC | Term loan                        
Line of Credit Facility [Line Items]                        
Line of credit, debt covenant, minimum average borrowing availability in any 30 day period 2,500,000           $ 1,500,000 $ 2,500,000        
Long-term debt, gross 14,750,000               14,750,000 0    
Term loan, face 20,000,000               20,000,000      
Goldman Sachs USA | Term loan                        
Line of Credit Facility [Line Items]                        
Long-term debt, gross 0               0 4,000,000    
Term loan, face 8,900,000               8,900,000      
Texas Citizens Bank | Term loan                        
Line of Credit Facility [Line Items]                        
Long-term debt, gross 834,283               834,283 1,531,506    
Term loan, face 2,045,500               2,045,500      
Various institutions | Insurance premiums financed                        
Line of Credit Facility [Line Items]                        
Long-term debt, gross 803,392               803,392 1,060,065    
Term loan, face 2,902,428               2,902,428      
Pacific Western Bank | Capital lease obligations                        
Line of Credit Facility [Line Items]                        
Long-term debt, gross 0               0 $ 133,153    
Term loan, face $ 3,154,860               $ 3,154,860      
Maximum | Various institutions | Insurance premiums financed                        
Line of Credit Facility [Line Items]                        
Interest rate 4.52%               4.52%      
Minimum | Various institutions | Insurance premiums financed                        
Line of Credit Facility [Line Items]                        
Interest rate 4.00%               4.00%      
Revolving Credit Facility | Encina Business Credit SPV, LLC                        
Line of Credit Facility [Line Items]                        
Line of credit facility, maximum borrowing capacity $ 5,408,473 $ 10,000,000             $ 5,408,473      
Line of credit, debt covenant, capital expenditures, maximum                 3,000,000      
Line of credit, debt covenant, minimum average borrowing availability in any 30 day period                 $ 2,500,000.0      
Revolving Credit Facility | Encina Business Credit SPV, LLC | One-month LIBOR                        
Line of Credit Facility [Line Items]                        
Interest rate 0.78%               0.78%      
Incremental increase per event of default, percent                 2.00%      
Variable rate basis, basis spread                 6.50%      
Revolving Credit Facility | Encina Business Credit SPV, LLC | Federal funds rate                        
Line of Credit Facility [Line Items]                        
Interest rate 0.50%               0.50%      
Revolving Credit Facility | Encina Business Credit SPV, LLC | Bank of America London Interbank Offered Rate (LIBOR)                        
Line of Credit Facility [Line Items]                        
Variable rate basis, basis spread                 1.00%      
Revolving Credit Facility | Minimum | Encina Business Credit SPV, LLC | One-month LIBOR                        
Line of Credit Facility [Line Items]                        
Interest rate 0.25%               0.25%      
Revolving Credit Facility | Tier One | Encina Business Credit SPV, LLC                        
Line of Credit Facility [Line Items]                        
Line of credit, eligible inventory included in calculation of maximum allowable outstanding balance, percent                 85.00%      
Revolving Credit Facility | Tier Two | Encina Business Credit SPV, LLC                        
Line of Credit Facility [Line Items]                        
Line of credit, eligible inventory included in calculation of maximum allowable outstanding balance, percent                 65.00%      
Line of credit, eligible inventory included in calculation of maximum allowable outstanding balance, ceiling                 $ 4,000,000      
Line of credit, eligible receivables included in calculation of maximum allowable outstanding balance, percent                 85.00%      
EBC Credit Agreement | Line of Credit                        
Line of Credit Facility [Line Items]                        
Line of credit facility, maximum borrowing capacity   $ 20,000,000                    
Line of credit outstanding as percent of plant and equipment, maximum   50.00%                    
Line of credit, period for dividends included in calculation of interest rate tier                 12 months      
Line of credit, average availability                 $ 5,408,473      
Incremental increase per event of default, percent                 2.00%      
Principal payments                 $ 75,000      
Line of credit, debt covenant, capital expenditures, maximum                 3,000,000      
Line of credit, debt covenant, minimum average borrowing availability in any 30 day period                 2,500,000.0      
Line of credit, debt covenant, event of default under any agreement, debt amount minimum                 500,000      
Line of credit, debt covenant, event of default, legal judgment, amount, minimum                 $ 500,000      
Line of credit, debt covenant, event of default, change in stock ownership by executive officers, minimum, percent                 15.00%      
Line of credit, debt covenant, event of default, change in ownership, minimum, percent                 30.00%      
Line of credit, debt covenant, event of default, period during which a majority of duly elected board members cease to serve                 12 months      
EBC Credit Agreement | Line of Credit | Maximum                        
Line of Credit Facility [Line Items]                        
Line of credit, average availability                 $ 2,500,000      
EBC Credit Agreement | Line of Credit | Minimum                        
Line of Credit Facility [Line Items]                        
Line of credit, average availability                 2,500,000      
Line of credit, voluntary repayment amount                 $ 100,000      
EBC Credit Agreement | Line of Credit | Tier One                        
Line of Credit Facility [Line Items]                        
Interest rate 12.00%               12.00%      
EBC Credit Agreement | Line of Credit | Tier One | Minimum                        
Line of Credit Facility [Line Items]                        
Debt covenant ratio                 1      
EBC Credit Agreement | Line of Credit | Tier Two                        
Line of Credit Facility [Line Items]                        
Interest rate 13.00%               13.00%      
EBC Credit Agreement | Line of Credit | Tier Two | Maximum                        
Line of Credit Facility [Line Items]                        
Debt covenant ratio                 1.45      
EBC Credit Agreement | Line of Credit | Tier Two | Minimum                        
Line of Credit Facility [Line Items]                        
Debt covenant ratio                 1      
EBC Credit Agreement | Line of Credit | Tier Three                        
Line of Credit Facility [Line Items]                        
Interest rate 14.00%               14.00%      
EBC Credit Agreement | Line of Credit | Tier Three | Minimum                        
Line of Credit Facility [Line Items]                        
Debt covenant ratio                 1.45      
Existing Credit Obligations                        
Line of Credit Facility [Line Items]                        
Repayments of debt   $ 11,282,537                    
Credit Agreement 2014 | Term loan                        
Line of Credit Facility [Line Items]                        
Term loan, face           $ 40,000,000            
Credit Agreement 2014 | Maximum | Term loan                        
Line of Credit Facility [Line Items]                        
Interest rate           4.50%            
Credit Agreement 2014 | Maximum | Federal funds rate | Notes payable                        
Line of Credit Facility [Line Items]                        
Variable rate basis, basis spread           0.50%            
Credit Agreement 2014 | Maximum | Bank of America London Interbank Offered Rate (LIBOR) | Term loan                        
Line of Credit Facility [Line Items]                        
Variable rate basis, basis spread           1.00%            
Credit Agreement 2014 | Maximum | ICE Benchmark Administration Limited | Term loan                        
Line of Credit Facility [Line Items]                        
Basis spread on variable rate, numerator component           1.50%            
Restated Credit Agreement                        
Line of Credit Facility [Line Items]                        
Line of credit facility, earnings before interest, taxes, depreciation, and amortization, measurement period     1 year                  
Restated Credit Agreement | Term loan                        
Line of Credit Facility [Line Items]                        
Principal payments     $ 800,000                  
Repayments of debt     16,000,000                  
Additional cash proceeds payable per agreement threshold     $ 500,000                  
Period for synergies to be achieved     90 days                  
Minimum liquidity     $ 2,000,000                  
Restated Credit Agreement | Goldman Sachs USA | Term loan                        
Line of Credit Facility [Line Items]                        
Line of credit facility, maximum borrowing capacity     8,900,000                  
Line of credit, outstanding     6,400,000                  
Remaining borrowing capacity     $ 2,500,000                  
MidCap Loan Agreement | Minimum | Term loan                        
Line of Credit Facility [Line Items]                        
Debt instrument, expected amount         $ 7,000,000              
Debt instrument, expected amount, percentage of accounts receivable         85.00%              
Debt instrument, additional expected amount         $ 3,000,000              
MidCap Loan Agreement | Minimum | Term loan | Raw Materials and Finished Goods                        
Line of Credit Facility [Line Items]                        
Debt instrument, additional expected amount, percentage of inventory         50.00%              
Midcap First Amendment | Term loan                        
Line of Credit Facility [Line Items]                        
Line of credit facility, maximum borrowing capacity, per customer                     $ 100,000  
Fox Note | Notes Payable, Other Payables [Member] | Vertex OH                        
Line of Credit Facility [Line Items]                        
Interest rate     10.00%                  
Term loan, face     $ 5,150,000.00                  
Interest rate in the event of default     15.00%                  
Number of extension options (extension) | extension     3                  
Length of extension options     6 months                  
Extension fee percentage     3.00%                  
Prepayment terms, decrease in amount to be repaid     $ 150,000                  
Texas Citizens Bank Loan | Term loan                        
Line of Credit Facility [Line Items]                        
Effective interest rate 5.50%               5.50%