XML 68 R57.htm IDEA: XBRL DOCUMENT v3.23.2
DERIVATIVES (Derivatives Not Designated as Hedging Instruments) (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2023
May 31, 2022
May 31, 2023
May 31, 2022
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) on commodity derivatives accounted for as cash flow hedging instruments $ (11,848) $ 25,927 $ 80,154 $ 81,378
Commodity        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) on commodity derivatives accounted for as cash flow hedging instruments (11,855) 25,920 80,134 81,285
Commodity | Cost of goods sold        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) before income taxes for derivatives not designated as hedges 7,540 2,042 (1,540) 2,574
Foreign exchange | SG&A expenses        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) before income taxes for derivatives not designated as hedges $ 3,686 $ 6,157 $ 10,095 $ (2,886)