Annual report pursuant to Section 13 and 15(d)

NOTES PAYABLE (Details)

v3.20.4
NOTES PAYABLE (Details)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2019
USD ($)
Equity_Instrument
$ / shares
Dec. 31, 2018
USD ($)
Equity_Instrument
Debt Instrument [Line Items]    
Term of Notes   Non Current, Convertible notes payable to related parties:
Conversion Price | $ / shares $ 10.00  
Principal Outstanding $ 17,142 $ 55,172
Discount Amount 3,190 17,211
Carrying Amount $ 13,952 $ 37,961
Shares Underlying Notes | Equity_Instrument 1,444,291 6,496,892
2013 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding $ 920 $ 909
Carrying Amount $ 920 909
2015 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding   10
Carrying Amount   10
2016 Notes payable [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
Principal Outstanding   843
Carrying Amount   843
2016 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
2016 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
2017 Notes payable [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
Principal Outstanding   2,575
Carrying Amount   2,575
2017 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 5.00%  
2017 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
2018 Notes payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding   12,311
Discount Amount   9,511
Carrying Amount   2,800
2018 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
2018 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Term of Notes 18 months  
2019 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Principal Outstanding $ 2,829  
Carrying Amount $ 2,829  
2019 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
2019 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Term of Notes 6 months  
Notes Payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding $ 3,749 16,648
Discount Amount   9,511
Carrying Amount 3,749 7,137
Principal Outstanding, Current 3,749 12,448
Discount Amount Current   6,236
Notes payable, current $ 3,749 6,212
Principal Outstanding, Non Current   4,200
Discount Amount Non Current   3,275
Notes payable, non-current   925
2016 Notes payable - related party [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
Principal Outstanding $ 20 270
Carrying Amount $ 20 270
2016 Notes payable - related party [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
2016 Notes payable - related party [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
2017 Notes payable - related party [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding   39
Carrying Amount   39
2018 Notes payable - related party [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Term of Notes Due on demand  
Principal Outstanding $ 159 159
Carrying Amount $ 159 159
2019 Notes payable - related party [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding $ 14  
Carrying Amount 14  
Notes payable - related party [Member]    
Debt Instrument [Line Items]    
Principal Outstanding 193 468
Carrying Amount 193 468
Principal Outstanding, Current 193 468
Notes payable, current $ 193 $ 468