XML 57 R46.htm IDEA: XBRL DOCUMENT
v3.22.2.2

FAIR VALUE MEASUREMENT (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
FAIR VALUE MEASUREMENT |
Schedule of fair value of derivative instruments on the consolidated balance sheets | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Fair Value of Derivative Assets
​ | ​ | At December 31, 2020 | ​ | At December 31, 2021
​ |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
​ | ​ | ​ | ​ | $ | ​ | ​ | ​ | $
Foreign exchange forward contracts |  | Derivative assets — current |  | 22,178 |  | Derivative assets — current |  | 7,124
Foreign exchange option contracts | ​ | Derivative assets — current | ​ | 1,173 | ​ | Derivative assets — current | ​ | 162
Interest rate swap | ​ | Other non-current assets | ​ | — | ​ | Other non-current assets | ​ | 76
​ | ​ | Total |  | 23,351 | ​ | Total | ​ | 7,362
​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Fair Value of Derivative Liabilities
​ | ​ | At December 31, 2020 | ​ | At December 31, 2021
​ |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
​ | ​ | ​ | ​ | $ | ​ | ​ | ​ | $
Foreign exchange forward contracts | ​ | Derivative liabilities — current | ​ | 10,753 | ​ | Derivative liabilities — current | ​ | 2,622
Foreign exchange option contracts | ​ | Derivative liabilities — current | ​ | 2 | ​ | Derivative liabilities — current | ​ | —
​ |  | Total |  | 10,755 |  | Total |  | 2,622
Schedule of effect of derivative instruments on consolidated statements of operations | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | ​ | ​ | Amount of Gain (Loss)
​ | ​ | ​ | ​ | Recognized in Statements
​ | ​ | Location of | ​ | of Operations
​ | ​ | Gain (Loss) Recognized | ​ | Years Ended December 31
​ |  | in Statements of Operations |  | 2019 |  | 2020 |  | 2021
​ | ​ | ​ | ​ | $ | ​ | $ | ​ | $
Foreign exchange forward contracts |  | Gain (loss) on change in fair value of derivatives, net | ​ | (20,249) |  | 49,807 |  | 22,582
Foreign exchange option contracts | ​ | Gain (loss) on change in fair value of derivatives, net | ​ | (1,022) | ​ | 1,376 | ​ | 220
Commodity hedge | ​ | Gain (loss) on change in fair value of derivatives, net | ​ | — | ​ | — | ​ | 983
Interest rate swap | ​ | Gain (loss) on change in fair value of derivatives, net | ​ | (947) | ​ | (1,182) | ​ | —
​ | ​ | Total |  | (22,218) |  | 50,001 |  | 23,785

X
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4E -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624181-113959 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 + Details
Name: | us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959 + Details
Name: | us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration