XML 64 R52.htm IDEA: XBRL DOCUMENT v3.7.0.1
Effect of Derivative Instruments on Statements of Income (Detail) - Cash Flow Hedging - USD ($)
$ in Thousands
6 Months Ended
Feb. 28, 2017
Feb. 29, 2016
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in income on derivatives $ 543 $ (298)
Gain (loss) recognized in OCI on derivatives (effective portion) (2,563) (10,016)
Loss reclassified from accumulated OCI into income (effective portion) (4,068) (1,519)
Gain (loss)recognized on derivative (ineffective portion and amount excluded from effectiveness testing) (3,255) 3,818
Foreign Exchange Forward    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives (effective portion) (3,592) (6,756)
Foreign Exchange Forward | Interest and Foreign Exchange    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in income on derivatives 520 (436)
Foreign Exchange Forward | Sales    
Derivative Instruments, Gain (Loss) [Line Items]    
Loss reclassified from accumulated OCI into income (effective portion) (3,096) (491)
Gain (loss)recognized on derivative (ineffective portion and amount excluded from effectiveness testing) (3,355) 3,795
Foreign Exchange Forward | Cost Of Revenue    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives (effective portion) (435) (982)
Loss reclassified from accumulated OCI into income (effective portion) (346) (195)
Gain (loss)recognized on derivative (ineffective portion and amount excluded from effectiveness testing) 100 23
Interest rate swap contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives (effective portion) 1,464 (2,278)
Interest rate swap contracts | Interest and Foreign Exchange    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in income on derivatives 23 138
Loss reclassified from accumulated OCI into income (effective portion) $ (626) $ (833)