XML 45 R33.htm IDEA: XBRL DOCUMENT v3.8.0.1
LINE OF CREDIT AND LONG-TERM DEBT (Details Narrative)
1 Months Ended 9 Months Ended
Feb. 01, 2017
USD ($)
Jan. 29, 2016
USD ($)
extension
Jan. 28, 2016
USD ($)
Mar. 27, 2015
USD ($)
May 31, 2014
USD ($)
Sep. 30, 2017
USD ($)
Dec. 31, 2016
USD ($)
Nov. 09, 2015
USD ($)
May 02, 2014
lease
Line of Credit Facility [Line Items]                  
Long-term debt           $ 20,170,211 $ 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 line of credit                  
Line of Credit Facility [Line Items]                  
Long-term debt           3,738,483 0    
Term loan amount           10,000,000      
Encina Business Credit, LLC | Term loan                  
Line of Credit Facility [Line Items]                  
Long-term debt           13,975,000 0    
Term loan amount           20,000,000      
Goldman Sachs USA | Term loan                  
Line of Credit Facility [Line Items]                  
Long-term debt           0 4,000,000    
Term loan amount           8,900,000      
Texas Citizens Bank | Term loan                  
Line of Credit Facility [Line Items]                  
Long-term debt           966,847 1,531,506    
Term loan amount           2,045,500      
Various institutions | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Long-term debt           1,489,881 1,060,065    
Term loan amount           2,902,428      
Pacific Western Bank | Capital Lease                  
Line of Credit Facility [Line Items]                  
Long-term debt           0 $ 133,153    
Term loan amount           $ 3,154,860      
Maximum | Various institutions | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           4.52%      
Minimum | Various institutions | Insurance premiums financed                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           4.00%      
Revolving line of credit | Encina Business Credit SPV, LLC                  
Line of Credit Facility [Line Items]                  
Line of credit, maximum borrowing capacity $ 10,000,000         $ 3,011,038      
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)           1.23%      
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 | Minimum | Encina Business Credit SPV, LLC | One Month LIBOR                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           0.25%      
Revolving line of credit | 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 line of credit | 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, 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           $ 3,118,937      
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      
EBC Credit Agreement | Line of Credit | Maximum                  
Line of Credit Facility [Line Items]                  
Line of credit, average availability included in calculation of interest rate tier           $ 2,500,000      
EBC Credit Agreement | Line of Credit | Minimum                  
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      
EBC Credit Agreement | Line of Credit | Tier One                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)           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]                  
Debt instrument, stated rate (percent)           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]                  
Debt instrument, stated rate (percent)           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                
2014 Goldman Sachs Bank Credit Agreement | Term loan                  
Line of Credit Facility [Line Items]                  
Term loan amount         $ 40,000,000        
2014 Goldman Sachs Bank Credit Agreement | Maximum | Term loan                  
Line of Credit Facility [Line Items]                  
Debt instrument, stated rate (percent)         4.50%        
2014 Goldman Sachs Bank Credit Agreement | Maximum | Federal Funds Rate | Notes payable to banks                  
Line of Credit Facility [Line Items]                  
Variable rate, basis spread         0.50%        
2014 Goldman Sachs Bank Credit Agreement | Maximum | London Interbank Offered Rate (LIBOR | Term loan                  
Line of Credit Facility [Line Items]                  
Variable rate, basis spread         1.00%        
2014 Goldman Sachs Bank Credit Agreement | 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, 2016                  
Line of Credit Facility [Line Items]                  
EBITDA measurement period   1 year              
Restated Credit Agreement, 2016 | Term loan                  
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              
Restated Credit Agreement, 2016 | Goldman Sachs USA | Term loan                  
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              
MidCap Loan Agreement | Minimum | Term loan                  
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          
MidCap Loan Agreement | Minimum | Term loan | Raw Materials and Finished Goods                  
Line of Credit Facility [Line Items]                  
Additional agreed upon loan amount, percentage of inventory       50.00%          
Midcap First Amendment | Term loan                  
Line of Credit Facility [Line Items]                  
Maximum borrowing base, per account/customer               $ 100,000  
Fox Note | Promissory note payable | Vertex Refining OH, LLC                  
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              
Texas Citizens Bank Loan | Term loan                  
Line of Credit Facility [Line Items]                  
Effective interest rate           5.50%