XML 16 R6.htm IDEA: XBRL DOCUMENT v3.21.2
Unaudited Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Cash flows from operating activities:    
Net income (loss) $ (32,400) $ (9,042)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization 3,555 3,935
Impairment of long-lived assets and non-cash restructuring 4,475  
Gain on Lease termination (908)  
Loss on extinguishment of debt   1,343
Amortization of deferred financing costs 12 147
Stock-based compensation 6,450 3,310
Provision for inventory write-down 2,928 4,079
Bad debt expense 14,579 446
Provision for sales returns 873 556
Provision for warranty 636 341
Unrealized gain on foreign currency transactions 47 (405)
Deferred taxes 139 (224)
Changes in operating assets and liabilities:    
Accounts receivable (3,945) (16,582)
Other receivable (7,648) (1,153)
Inventories (24,256) (11,984)
Contract assets 2,557 11,609
Prepaid expenses and other assets (7,063) (805)
Accounts payable 21,991 2,217
Contract liabilities 631 (131)
Accrued and other liabilities 2,282 1,348
Net cash provided by (used in) operating activities (15,065) (10,995)
Cash flows from investing activities:    
Purchases of property, plant and equipment (4,158) (1,947)
Acquisition of business, net of cash acquired (4,459)  
Net cash used in investing activities (8,617) (1,947)
Cash flows from financing activities:    
Proceeds from issuance of common stock in public offerings, net of issuance costs 59,525  
Proceeds from short-term borrowings and line of credit   13,774
Repayments of short-term borrowings and line of credit (13,278) (12,077)
Repayments of long-term borrowings   (13,125)
Proceeds from related party term loan   18,361
Repayments of related party term loan (29,298)  
Proceeds from factored accounts receivable   11,645
Deferred financing costs   (20)
Proceeds from exercise of stock awards and employee stock plan purchases 4,629 1,262
Net cash provided by financing activities 21,578 19,820
Effect of exchange rate changes on cash, cash equivalents and restricted cash 71 47
Net increase in cash, cash equivalents and restricted cash (2,033) 6,925
Cash, cash equivalents and restricted cash at beginning of period 54,587 33,635
Cash, cash equivalents and restricted cash at end of period 52,554 40,560
Reconciliation of cash, cash equivalents and restricted cash to statement of financial position    
Cash and cash equivalents 45,505 31,307
Restricted cash 6,884 9,087
Long-term restricted cash 165 166
Cash, cash equivalents and restricted cash at end of period 52,554 40,560
Cash paid during the period for:    
Interest - bank and trade facilities 83 616
Interest - related party 108 888
Income taxes $ 3,029 $ 2,587