Condensed Consolidated Statements of Operations (unaudited) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2019
Jun. 30, 2018
Contract revenue:        
Contract revenue for service, sale and installation of solar energy systems and powerhouse sales $ 2,294 $ 3,568 $ 4,456 $ 6,392
Contract expenses:        
Contract loss (563) (577) (1,999) (2,127)
Operating expense 2,640 2,250 5,656 4,974
Goodwill Impairment   1,338   1,338
Litigation 149 44 199 161
Operating loss (3,352) (4,209) (7,854) (8,600)
Change in fair value of derivative liabilities and loss on debt extinguishment (1,502) (3,073) (1,445) (3,046)
Amortization of debt discount and deferred loan costs (234) (1,435) (287) (1,435)
Other income 12 955 20 985
Net loss $ (5,076) $ (7,762) $ (9,566) $ (12,096)
Net loss per share - basic and diluted:        
Basic and Diluted $ (0.05) $ (0.72) $ (0.09) $ (1.15)
Weighted-average shares outstanding:        
Basic and Diluted 109,521 10,757 101,242 10,485
Sale and installation of solar energy systems        
Contract revenue:        
Contract revenue for service, sale and installation of solar energy systems and powerhouse sales $ 1,887 $ 3,358 $ 3,443 $ 5,879
Contract expenses:        
Installation of solar energy systems 1,780 3,008 3,686 5,801
POWERHOUSE        
Contract revenue:        
Contract revenue for service, sale and installation of solar energy systems and powerhouse sales 106 0 171 0
Contract expenses:        
Installation of solar energy systems 270 4 437 5
Service        
Contract revenue:        
Contract revenue for service, sale and installation of solar energy systems and powerhouse sales 293 196 821 484
Contract expenses:        
Installation of solar energy systems $ 278 $ 340 $ 719 $ 732