XML 18 R6.htm IDEA: XBRL DOCUMENT v3.21.2
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Oct. 31, 2021
Oct. 31, 2020
Cash flows from operating activities:    
Net income $ 135,563 $ 55,688
Adjustments to reconcile net income to net cash (used in) provided by operating activities:    
Depreciation and amortization 57,117 54,342
Amortization of debt discount and debt issuance costs 1,392 1,505
Equity-based compensation 7,951 6,370
(Gain) loss on disposal and impairment of assets (222) 875
Deferred income taxes (718) (9,296)
Other items, net 1,682 (1,057)
Changes in assets and liabilities net of effects of acquisitions:    
Trade accounts and notes receivable (147,359) (57,106)
Inventories (168,519) (950)
Prepaid expenses and other assets (216) (4,776)
Accounts payable 16,608 (19,898)
Accrued compensation and employee benefits (3,561) (23,889)
Other accrued expenses and liabilities 23,187 22,240
Cash (used in) provided by operating activities (77,095) 24,048
Cash flows from investing activities:    
Purchases of property and equipment (16,119) (11,845)
Proceeds from sale of assets 466 720
Acquisition of businesses, net of cash acquired (124,976) (51)
Cash used in investing activities (140,629) (11,176)
Cash flows from financing activities:    
Repayments on revolving credit facilities (442,442) (102,189)
Borrowings from revolving credit facilities 583,233 14,750
Payments of principal on long-term debt (2,555) (4,984)
Payments of principal on finance lease obligations (15,154) (14,629)
Repurchases of common stock (13,124) (1,222)
Proceeds from exercises of stock options 1,840 863
Payments for taxes related to net share settlement of equity awards (2,835) (754)
Other financing activities 1,140 1,270
Cash provided by (used in) financing activities 110,103 (106,895)
Effect of exchange rates on cash and cash equivalents (81) 1,282
Decrease in cash and cash equivalents (107,702) (92,741)
Cash and cash equivalents, beginning of period 167,012 210,909
Cash and cash equivalents, end of period 59,310 118,168
Supplemental cash flow disclosures:    
Cash paid for income taxes 37,784 20,224
Cash paid for interest $ 17,596 $ 25,726