XML 47 R37.htm IDEA: XBRL DOCUMENT v3.7.0.1
Basis of Presentation Statement of Operations (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2017
Jul. 31, 2016
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Cost of sales $ 227,992 $ 224,922 $ 691,945 $ 718,071
Gross profit 28,855 23,910 85,871 66,080
Selling, general and administrative expenses 21,251 17,546 63,134 51,882
Asset impairment, net 0 0 41 273
Operating income 7,039 5,798 21,002 12,230
Other expense (798) (487) (1,293) (518)
Income before income taxes 2,457 666 6,915 (1,799)
Provision for income taxes (4,439) (1,344) (6,686) 203
Net loss $ (1,982) $ (678) $ 229 $ (1,596)
Basic loss per share $ (0.11) $ (0.04) $ 0.01 $ (0.09)
Diluted loss per share $ (0.11) $ (0.04) $ 0.01 $ (0.09)
Timing And Recognition Of Certain Transactions [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Cost of sales   $ 224,922    
Gross profit   23,910    
Operating income   5,798    
Other expense   487    
Income before income taxes   666    
Provision for income taxes   (1,344)    
Net loss   $ (678)   $ (1,596)
Basic loss per share   $ (0.04)    
Diluted loss per share   $ (0.04)    
Timing And Recognition Of Certain Transactions [Member] | Scenario, Previously Reported [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Cost of sales   $ 224,575   719,135
Gross profit   24,257   65,016
Selling, general and administrative expenses       52,122
Asset impairment, net       0
Operating income   6,145   11,199
Other expense   486    
Income before income taxes   1,014   (2,830)
Provision for income taxes   (1,363)   479
Net loss   $ (349)   $ (2,351)
Basic loss per share   $ (0.02)   $ (0.13)
Diluted loss per share   $ (0.02)   $ (0.13)
Timing And Recognition Of Certain Transactions [Member] | Restatement Adjustment [Member]        
Error Corrections and Prior Period Adjustments Restatement [Line Items]        
Cost of sales   $ 347   $ (1,064)
Gross profit   (347)   1,064
Selling, general and administrative expenses       (240)
Asset impairment, net       273
Operating income   (347)   1,031
Other expense   1    
Income before income taxes   (348)   1,031
Provision for income taxes   19   (276)
Net loss   $ (329)   $ 755
Basic loss per share   $ (0.02)   $ 0.04
Diluted loss per share   $ (0.02)   $ 0.04