XML 122 R107.htm IDEA: XBRL DOCUMENT v3.8.0.1
Schedule of Valuation and Qualifying Accounts (Details 2) - Reserve for inventory obsolescence - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2017
Aug. 31, 2016
Aug. 31, 2015
Valuation and Qualifying Accounts Disclosure [Line Items]      
Balance at beginning of period $ 32,221 $ 43,477 $ 49,431
Additions and adjustments charged to costs and expenses 46,030 12,145 10,826
Write-offs (32,238) (23,401) (16,780)
Balance at end of period $ 46,013 $ 32,221 $ 43,477