CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) (Parenthetical) - USD ($) $ in Thousands |
3 Months Ended | |
|---|---|---|
Apr. 30, 2018 |
Apr. 30, 2017 |
|
| Foreign Exchange Contract | ||
| Tax expense (benefit) on unrealized gain (loss) on cash flow hedge derivative instruments | $ 0 | $ 0 |
| Tax expense (benefit) on reclassification of gain (loss) on foreign currency contract cash flow hedge derivative instruments | 0 | 0 |
| Cash Flow Hedges | ||
| Tax expense (benefit) on unrealized gain (loss) on cash flow hedge derivative instruments | 0 | 19 |
| Tax expense (benefit) on reclassification of gain (loss) on foreign currency contract cash flow hedge derivative instruments | $ 0 | $ (326) |