Quarterly report pursuant to Section 13 or 15(d)

NOTES PAYABLE (Details)

v3.21.2
NOTES PAYABLE (Details)
$ / shares in Units, $ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2020
USD ($)
Equity_Instrument
$ / shares
Dec. 31, 2019
USD ($)
Equity_Instrument
Debt Instrument [Line Items]    
Conversion Price | $ / shares $ 10.00  
Principal Outstanding $ 17,143 $ 17,142
Discount Amount 1,606 3,190
Carrying Amount $ 15,537 $ 13,952
Shares Underlying Notes | Equity_Instrument 4,638,333 1,444,291
2013 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00% 10.00%
Term of Notes Due on demand Due on demand
Principal Outstanding $ 928 $ 920
Carrying Amount $ 928 $ 920
2019 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00% 11.00%
Principal Outstanding $ 2,839 $ 2,829
Carrying Amount $ 2,839 $ 2,829
2019 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand Due on demand
2019 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Term of Notes 6 months 6 months
2020 Notes payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding $ 992  
Carrying Amount $ 992  
2020 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 1.00%  
Term of Notes Due on demand  
2020 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Term of Notes 2 years  
Notes Payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding $ 4,759 $ 3,749
Carrying Amount 4,759 3,749
Principal Outstanding, Current 4,271 3,749
Notes payable, current 4,271 $ 3,749
Principal Outstanding, Non Current 488  
Notes payable, non-current $ 488  
2016 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00% 10.00%
Term of Notes Due on demand Due on demand
Principal Outstanding $ 20 $ 20
Carrying Amount $ 20 $ 20
2019 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00% 10.00%
Term of Notes Due on demand Due on demand
Principal Outstanding $ 14 $ 14
Carrying Amount 14 14
Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Principal Outstanding 34 193
Carrying Amount 34 193
Principal Outstanding, Current 34 193
Notes payable, current $ 34 $ 193
2018 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate   11.00%
Term of Notes   Due on demand
Principal Outstanding   $ 159
Carrying Amount   $ 159