XML 82 R6.htm IDEA: XBRL DOCUMENT v3.19.3
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities:    
Net income (loss) $ (3,069) $ 3,323
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation and amortization 4,110 2,033
Amortization of deferred financing costs 453  
Bargain purchase gain on acquisition (334)  
Stock-based compensation 2,818 1,357
Provision for inventory write-down 2,289 753
Allowance for doubtful accounts 148 2
Provision for sales returns 413 839
Unrealized loss (gain) on foreign currency transactions (2,080) 226
Deferred taxes 884 (56)
Changes in operating assets and liabilities:    
Accounts receivable (29,724) (15,377)
Contract assets 819 (5,984)
Inventories (3,454) (21,967)
Prepaid expenses and other assets 3,859 (1,958)
Accounts payable 9,275 24,790
Contract liabilities (4,246)  
Accrued and other liabilities (4,049) (3,695)
Net cash used in operating activities (21,888) (15,714)
Cash flows from investing activities:    
Purchases of property, plant and equipment (1,461) (753)
Proceeds from disposal of property and equipment and other assets   1
Acquisition of business, net of cash acquired (4,697)  
Net cash used in investing activities (6,158) (752)
Cash flows from financing activities:    
Proceeds from issuance of common stock in public offering, net of issuance costs 42,509  
Proceeds from short-term borrowings and line of credit 25,884 61,419
Repayments of short-term borrowings and line of credit (38,486) (48,739)
Proceeds from long-term borrowings 25,000  
Repayments of long-term borrowings (1,250)  
Proceeds from related party term loan   6,098
Repayments of related party term loan (5,000) (4,460)
Deferred financing costs (1,998)  
Purchase of non-controlling interest (950)  
Proceeds from exercise of stock options 473 853
Net cash provided by financing activities 46,182 15,171
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (984) (1,417)
Net increase in cash, cash equivalents and restricted cash 17,152 (2,712)
Cash, cash equivalents and restricted cash at beginning of period 35,648 31,412
Cash, cash equivalents and restricted cash at end of period 52,800 28,700
Reconciliation of cash, cash equivalents and restricted cash to statement of financial position    
Reconciliation of cash, cash equivalents and restricted cash $ 35,648 $ 31,412