Total selling, general and administrative expenses for the quarter were relatively flat year over year, and remained unchanged as a percentage of net sales for both the fourth quarter of 2012 and 2011. We continue to look for ways to increase efficiency while maintaining tight cost control management. The Company is implementing a Customer Master Data Management system to enhance our capabilities and target additional selling opportunities, which is scheduled to be placed into service in 2013. This will conclude the first phase of a comprehensive initiative to improve our internal IT infrastructure. Depreciation expense for this asset is expected to add approximately $2.0 million in SG&A expenses in 2013, which may increase our SG&A rates.
The Company generated significant positive cash flow for the year ended December 31, 2012. Total cash was $39.9 million compared to $4.6 million at December 31, 2011. In addition, there were no amounts outstanding on the Company’s line of credit at December 31, 2012, compared to $5.3 million outstanding at December 31, 2011. Days sales outstanding were 41 days at December 31, 2012, and inventory turns were 27 times in the fourth quarter of 2012.
During the quarter, the Company had two significant cash transactions. A special cash dividend of $0.38 per share was made to shareholders of record on November 28, 2012. The total cash payment of $10.1 million was paid on December 14, 2012. The Company also purchased 600,000 shares of its common stock from two principal stockholders at an average price of $10.58 per share. The stock purchase totaled $6.3 million and is reported as a Treasury Stock purchase in our Condensed Consolidated Statement of Cash Flows.
“During the fourth quarter we continued to drive gross margin improvement and double-digit earnings growth while facing soft overall demand due to the macro-economic environment,” said Tim McGrath, President and Chief Executive Officer. “Overall, 2012 was a strong year for the Company, as evidenced by our 19% growth in pro forma earnings per share, and the $70 million in cash we generated from operating activities. Our performance enabled us to pay a special dividend to shareholders for the second year in a row, fund our capital expenditures related to enhancing internal IT systems, and purchase common stock in an accretive transaction. In 2013, we are focused on top-line growth and improved bottom-line performance to enhance earnings and shareholder value.”