v3.22.2.2
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Operating activities:    
Net loss $ (46,147) $ (39,622)
Adjustments to reconcile net loss to net cash used in operating activities:    
Provision for losses on accounts receivable (8) 0
Lower of cost or market reserve adjustment to inventory 3,852 3,335
Depreciation and amortization 17,698 19,188
Amortization of debt issuance costs 641 650
Loss on disposal of assets (34) 3
Share-based compensation 7,243 8,922
Interest for extinguishment of debt 0 (70)
Extinguishment of debt 0 (6,229)
Unrealized foreign exchange gain 2,443 1,021
Changes in operating assets and liabilities:    
Accounts receivable, trade 2,258 (900)
Notes receivable 8,089 (8,102)
Prepaid income tax 1 0
Inventories (12,734) 13,551
Other current assets (2,251) 448
Operating right of use asset 665 609
Accounts payable 10,781 (1,149)
Accrued liabilities (2,312) (2,372)
Lease liability (724) (666)
Net cash used in operating activities (10,539) (11,383)
Investing activities:    
Purchase of property, plant and equipment (2,450) (5,555)
Proceeds from disposal of equipment 118 111
Deposits for equipment (488) (2,141)
Purchase of intangible assets (390) (324)
Net cash used in investing activities (3,210) (7,909)
Financing activities:    
Principal payments of long-term debt and notes payable (7,336) (3,276)
Proceeds from line of credit borrowings 103,505 103,925
Repayments of line of credit borrowings (97,298) (86,922)
Proceeds from bank acceptance payable 33,891 16,702
Repayments of bank acceptance payable (27,062) (26,150)
Principal payments of financing lease (14) (13)
Exercise of stock options 0 8
Payments of tax withholding on behalf of employees related to share-based compensation (337) (696)
Proceeds from common stock offering, net 238 15,397
Net cash provided by financing activities 5,587 18,975
Effect of exchange rate changes on cash 1,601 (900)
Net decrease in cash, cash equivalents and restricted cash (6,561) (1,217)
Cash, cash equivalents and restricted cash at beginning of period 41,136 50,114
Cash, cash equivalents and restricted cash at end of period 34,575 48,897
Supplemental disclosure of cash flow information:    
Interest, net of amounts capitalized 4,861 4,691
Income taxes 0 1
Non-cash investing and financing activities:    
Extinguishment of Debt and interest 0 (6,299)
Net change in accounts payable related to property and equipment additions (192) (4,147)
Net change in deposits and prepaid for equipment related to property and equipment additions $ 52 $ 83