XML 17 R6.htm IDEA: XBRL DOCUMENT v3.10.0.1
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
9 Months Ended
Jul. 31, 2018
Jul. 31, 2017
Cash flows from operating activities:    
Net income (loss) $ 1,419,083 $ (1,150,009)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation, amortization and accretion 1,340,787 1,232,460
Bad debt expense (recovery) (29,247) 6,161
Share-based compensation expense 1,361,475 668,676
Loss on sale of property and equipment 7,849 88,464
(Increase) decrease in:    
Trade accounts receivable (5,617,986) (390,889)
Other receivables 12,849 29,248
Inventories (531,995) (3,330,959)
Prepaid expenses and other assets (61,993) (36,707)
Income taxes refundable - noncurrent (44,973)
Increase (decrease) in:    
Accounts payable and accrued expenses 1,474,746 1,630,938
Accrued compensation and payroll taxes 1,727,689 144,769
Income taxes payable 12,958 6,293
Other noncurrent liabilities (25,386) 171,431
Net cash provided by (used in) operating activities 1,045,856 (930,124)
Cash flows from investing activities:    
Purchase of and deposits for the purchase of property and equipment (523,480) (412,332)
Investment in intangible assets (21,806) (55,736)
Net cash used in investing activities (545,286) (468,068)
Cash flows from financing activities:    
Payroll taxes withheld and remitted on share-based payments (170,501) (102,008)
Proceeds from notes payable to bank 8,550,000 1,000,000
Principal payments on long-term debt and notes payable to bank (8,671,261) (815,081)
Payments for financing costs (62,802) (17,500)
Repurchase of common stock (47) (17,019)
Net cash provided by (used in) financing activities (354,611) 48,392
Net increase (decrease) in cash 145,959 (1,349,800)
Cash at beginning of period 891,169 1,879,064
Cash at end of period $ 1,037,128 $ 529,264