# **Asia Salman Auto Parts Store Management System**
## **Comprehensive e-commerce platform for the automotive industry**
* Project Introduction**
This project is an **Online Auto Parts Store Management System** that was designed and implemented using **Flask** and **Python** for Asia Salman Auto Parts Trading Company. This platform covers the complex needs of the automotive parts industry with a **B2B** and **B2C** approach.
---
** Key and Innovative Features**
### ** Smart Search System**
- **Automatic recognition of car brand and type** from user input
- **Multi-layer search**: Exact matching → Brand-model → Category → Fuzzy search
- **Live suggestions** for brands, models and products
- **User behavior analysis** and search result optimization
### ** Advanced store system**
- **Brand-based navigation**: Select brand → model → category → products
- **Multi-shopping cart** with session management for guest users
- **Dynamic pricing** based on user type (wholesale/retail) and payment method
- **Smart discount system** and credit calculation
** User and role management**
- **Advanced role system** with custom permissions
- **Separation of wholesale and retail buyers** with approval process
- **Customer profiles** with scoring system
- **Credit and debt management** Customers
** Accounting and invoice system**
- **Synchronization with Tadbir system** (local ERP)
- **Invoice approval process** with custom workflow
- **Support for cash and check payments**
- **Upload and approval of payment documents**
### ** Design and user experience**
- **Responsive design** with full mobile support
- **Optimized color scheme** with contrast analysis and accessibility
- **Persian user interface** with RTL support
- **Smooth animations and interactions**
**️ Advanced technical features**
**️ System architecture**
- **Backend**: Flask + SQLAlchemy + PostgreSQL/SQLite
- **Frontend**: Bootstrap 5 + jQuery + AJAX
- **Database**: Relational design with query optimization
- **Caching**: Cache system to improve performance
** Advanced features**
- **RESTful API** for integration with external systems
- **Scoring system** with customizable rules
- **Automatic notification** via SMS and email
- **Comprehensive reporting** and analytical dashboards
**️ Security and performance**
- **Secure authentication** with password hashing
- **CSRF protection** and input validation
- **Database optimization** with smart indexes
- **Session management** and access control
Project achievements**
Solving complex problems**
- **Integration of different systems** (store + accounting + management)
- **Persian language processing** and adaptation to local standards
- **Complex inventory management** with automatic synchronization
- **Custom business processes** for the automotive industry
Technical innovations**
- **Intelligent vehicle brand recognition** from input text
- **Dynamic pricing system** based on customer type
- **Automatic approval process** of invoices with customizable rules
- **Color optimization** with contrast analysis and Accessibility
**️ Technologies Used**
**Backend**
- **Python 3.8+** - Main Programming Language
- **Flask** - Web Framework
- **SQLAlchemy** - ORM and Database Management
- **PostgreSQL/SQLite** - Relational Database
**Frontend**
- **HTML5/CSS3** - Structure and Style
- **Bootstrap 5** - CSS Framework
- **JavaScript/jQuery** - Client Interactions
- **AJAX** - Asynchronous Communications
**Tools and Libraries**
- **Pandas** - Data Processing and Excel
- **APScheduler** - Task Scheduling
- **Requests** - HTTP Communications
- **Pillow** - Image Processing
---
## ** Project Statistics and Scale**
- **+50 Database Models** with Complex Relationships
- **+100 Web Pages** with Responsive Design
- **+30 API Endpoints** for Integration
- **Multiple Language Support** (Persian/English)
- **Complete Content Management System** and Reporting
This project demonstrates the ability to:
- **Design and implement complex B2B systems**
- **Integrate with existing systems**
- **Optimize business processes**
- **Develop scalable solutions**
- **Manage large and complex projects**