XML 43 R31.htm IDEA: XBRL DOCUMENT v3.7.0.1
LINE OF CREDIT AND LONG-TERM DEBT (Details Narrative)
1 Months Ended 3 Months Ended
Feb. 01, 2017
USD ($)
Jan. 29, 2016
USD ($)
extension
Jan. 28, 2016
USD ($)
Mar. 27, 2015
USD ($)
May 31, 2014
USD ($)
Mar. 31, 2017
USD ($)
Dec. 31, 2016
USD ($)
Nov. 09, 2015
USD ($)
May 02, 2014
lease
Line of Credit Facility [Line Items]                  
Long-term debt           $ 14,700,591 $ 14,600,763    
Existing Credit Obligations                  
Line of Credit Facility [Line Items]                  
Repayments of debt $ 11,282,537                
Restated Credit Agreement, 2016                  
Line of Credit Facility [Line Items]                  
EBITDA measurement period   1 year              
Term loan                  
Line of Credit Facility [Line Items]                  
Repayments of debt     $ 16,100,000            
Term loan | 2014 Goldman Sachs Bank Credit Agreement                  
Line of Credit Facility [Line Items]                  
Term loan amount         $ 40,000,000        
Term loan | Restated Credit Agreement, 2016                  
Line of Credit Facility [Line Items]                  
Debit instrument, quarterly principal payment   $ 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              
Term loan | Midcap First Amendment                  
Line of Credit Facility [Line Items]                  
Maximum borrowing base, per account/customer               $ 100,000  
Term loan | Texas Citizens Bank Loan                  
Line of Credit Facility [Line Items]                  
Effective interest rate           5.50%      
Omega Refining                  
Line of Credit Facility [Line Items]                  
Number of capital leases assumed | lease                 2
Maximum | Term loan | 2014 Goldman Sachs Bank Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)         4.50%        
Maximum | Term loan | London Interbank Offered Rate (LIBOR | 2014 Goldman Sachs Bank Credit Agreement                  
Line of Credit Facility [Line Items]                  
Variable rate, basis spread         1.00%        
Maximum | Term loan | ICE Benchmark Administration Limited | 2014 Goldman Sachs Bank Credit Agreement                  
Line of Credit Facility [Line Items]                  
Basis spread on variable rate, numerator component         1.50%        
Maximum | Notes payable | Federal Funds Rate | 2014 Goldman Sachs Bank Credit Agreement                  
Line of Credit Facility [Line Items]                  
Variable rate, basis spread         0.50%        
Minimum | Term loan | MidCap Loan Agreement                  
Line of Credit Facility [Line Items]                  
Agreed upon amount of loan       $ 7,000,000          
Agreed upon amount of loan, percentage of account receivable       85.00%          
Additional agreed upon loan, amount       $ 3,000,000          
Encina Business Credit SPV, LLC | Revolving line of credit                  
Line of Credit Facility [Line Items]                  
Term loan amount           $ 10,000,000      
Long-term debt           907,295 0    
Encina Business Credit, LLC | Term loan                  
Line of Credit Facility [Line Items]                  
Term loan amount           20,000,000      
Long-term debt           11,925,000 0    
Goldman Sachs, USA | Term loan                  
Line of Credit Facility [Line Items]                  
Term loan amount           8,900,000      
Long-term debt           0 4,000,000    
Goldman Sachs, USA | Term loan | Restated Credit Agreement, 2016                  
Line of Credit Facility [Line Items]                  
Line of credit, maximum borrowing capacity   8,900,000              
Line of credit outstanding   6,400,000              
Remaining borrowing capacity   $ 2,500,000              
Texas Citizens Bank | Term loan                  
Line of Credit Facility [Line Items]                  
Term loan amount           2,045,500      
Long-term debt           1,358,540 1,531,506    
Various institutions | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Term loan amount           2,902,428      
Long-term debt           $ 425,710 1,060,065    
Various institutions | Maximum | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           4.52%      
Various institutions | Minimum | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           4.00%      
Pacific Western Bank | Capital Lease                  
Line of Credit Facility [Line Items]                  
Term loan amount           $ 3,154,860      
Long-term debt           $ 84,046 $ 133,153    
Vertex Refining OH, LLC | Promissory note payable | Fox Note                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)   10.00%              
Term loan amount   $ 5,150,000.00              
Interest rate in the event of a 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              
Raw Materials and Finished Goods | Minimum | Term loan | MidCap Loan Agreement                  
Line of Credit Facility [Line Items]                  
Additional agreed upon loan amount, percentage of inventory       50.00%          
Line of Credit | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Line of credit, maximum borrowing capacity $ 20,000,000                
Line of credit outstanding as percent of operating plant facilities and related machinery and equipment (percent) 50.00%                
Line of credit, period for dividends included in calculation of interest rate tier           12 months      
Line of credit, average availability included in calculation of interest rate tier           $ 4,173,051      
Debt instrument, interest rate, incremental increase per event of default (percent)           2.00%      
Debit instrument, quarterly principal payment           $ 75,000      
Line of credit, debt covenant, maximum annual capital expenditures allowed           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, minimum 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      
Line of Credit | Maximum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Line of credit, average availability included in calculation of interest rate tier           $ 2,500,000      
Line of Credit | Minimum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Line of credit, average availability included in calculation of interest rate tier           2,500,000      
Line of credit, voluntary repayment amount           100,000      
Revolving line of credit | Encina Business Credit SPV, LLC                  
Line of Credit Facility [Line Items]                  
Line of credit, maximum borrowing capacity $ 10,000,000                
Line of credit, debt covenant, maximum annual capital expenditures allowed           3,000,000      
Line of credit, debt covenant, minimum average borrowing availability in any 30 day period           $ 2,500,000.0      
Revolving line of credit | Encina Business Credit SPV, LLC | One Month LIBOR                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           0.78%      
Debt instrument, interest rate, incremental increase per event of default (percent)           2.00%      
Variable rate, basis spread           6.50%      
Revolving line of credit | Encina Business Credit SPV, LLC | Federal Funds Rate                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           0.50%      
Revolving line of credit | Encina Business Credit SPV, LLC | London Interbank Offered Rate (LIBOR                  
Line of Credit Facility [Line Items]                  
Variable rate, basis spread           1.00%      
Revolving line of credit | Encina Business Credit SPV, LLC | Minimum | One Month LIBOR                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           0.25%      
Tier One | Line of Credit | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           12.00%      
Tier One | Line of Credit | Minimum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt covenant ratio           1      
Tier One | Revolving line of credit | 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%      
Tier Two | Line of Credit | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           13.00%      
Tier Two | Line of Credit | Maximum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt covenant ratio           1.45      
Tier Two | Line of Credit | Minimum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt covenant ratio           1      
Tier Two | Revolving line of credit | 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%      
Tier Three | Line of Credit | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           14.00%      
Tier Three | Line of Credit | Minimum | EBC Credit Agreement                  
Line of Credit Facility [Line Items]                  
Debt covenant ratio           1.45