ERP system for factories and distributors