A comprehensive Arabic-language product management and sales system built with PHP and MySQL, designed for managing products, inventory, orders, payments, and generating detailed business reports.
This system provides a complete solution for product management, inventory control, sales tracking, payment processing, and comprehensive reporting. It features a robust authentication system, role-based access control, and supports both customer and supplier relationships.
-
Secure Login System
- Username/password authentication
- Password hashing with bcrypt support
- Legacy password migration support
- Session management with secure cookies
-
Access Control
- Role-based user permissions (Super Admin, Admin)
- User lock/unlock mechanism
- Session regeneration on login
- Secure session handling with HttpOnly, Secure, and SameSite attributes
-
System Lockdown
- System-wide lock functionality
- Individual user account locking
- Failed login protection
- Clock/time validation
- Add Products - Create new products with details
- Edit Products - Modify existing product information
- Delete Products - Remove products from the system
- Product Search - Quick product lookup with autocomplete
- Add Categories - Create product categories for organization
- Edit Categories - Modify category information
- Delete Categories - Remove categories (with safety checks)
- Category-based Organization - Products organized by categories
- Product names and identifiers
- Category associations
- Manufacturer/Supplier associations
- Price history tracking
- Quantity management
- Timestamp tracking for all operations
- User attribution for changes
-
Price Setting
- Set purchase price (cost)
- Set selling price
- Price activation/deactivation system
- Historical price tracking
-
Price Modification
- Edit individual product prices
- Bulk price updates by category
- Percentage-based price adjustments (increase/decrease)
- Price lists management
- Price changes with audit trail
-
Price Reports
- Complete price listing reports
- Price change history
- Active/inactive price tracking
-
Stock Management
- Add quantity to inventory
- Edit/Update product quantities
- Real-time stock tracking
- Quantity limits and minimum thresholds
-
Stock Alerts
- Minimum quantity limits per product
- Low stock warnings
- Dashboard alerts for critical inventory levels
-
Inventory Operations
- Stock in/out tracking
- Automatic quantity updates on sales
- Quantity validation before sales
-
Order Processing
- Create new sales orders
- Add products to orders
- Remove products from orders
- Order number generation and tracking
- Customer name assignment per order
-
Order Features
- Discount application per order (percentage-based)
- Order date tracking
- Order total calculation (with discounts)
- Order return functionality
- Temporary order storage
- Order editing capabilities
-
Order Tracking
- Unique order numbers
- Order history
- User attribution for orders
- Order status management
- Payment Recording
- Add customer payments
- Edit payment records
- Delete payments
- Payment source categorization (Customer, Treasury, etc.)
- Customer Credit Management
- Track customer delayed payments
- Payment delay reports (daily/monthly/yearly)
- Customer debt tracking
- Payment collection management
- Supplier Payment Tracking
- Record supplier payments
- Track delayed supplier payments
- Supplier debt reports
- Manufacturer/supplier payment history
- Customer payments (ุฒุจูู)
- Salaries (ุฑูุงุชุจ)
- Expenses (ู ูุตุฑูุงุช)
- Profits (ุงุฑุจุงุญ)
- Loans (ุณูููุฉ)
- External loans (ุณูููุงุช ุฎุงุฑุฌูุฉ)
- Treasury (ุฎุฒูู)
- Sales (ู ุจูุนุงุช)
- Multiple payment type tracking
- Account-based payment organization
- Payment date tracking
- User attribution for payments
-
Supplier Operations
- Add suppliers/manufacturers
- Edit supplier information
- Delete suppliers
- Supplier contact information (mobile, address, details)
-
Supplier Features
- Supplier name management
- Contact details tracking
- Supplier payment tracking
- Delayed payment management for suppliers
-
General Sales Reports
- Complete sales overview
- Sales by date ranges
- Sales by product
- Sales by category
-
Time-Based Sales Reports
- Daily sales reports
- Monthly sales reports
- Yearly sales reports
- Custom date range reports
-
Payment Overview
- All payments report
- Payment by source/category
- Payment history
-
Time-Based Payment Reports
- Daily payment reports
- Monthly payment reports
- Yearly payment reports
- Profit Analysis
- Sales profit calculation
- Profit margins tracking
- Cost vs. selling price analysis
- Sales by Category
- Product category performance
- Category-wise sales breakdown
- Category profit analysis
-
Customer Debts
- Customer delayed payment reports (daily/monthly/yearly)
- Customer debt tracking
- Outstanding balances
-
Supplier Debts
- Supplier delayed payment reports
- Outstanding supplier payments
- Payment due tracking
- Price Analysis
- Current prices report
- Price history
- Active price listings
-
User Administration (Super Admin Features)
- Add new users
- Edit user information
- Delete users
- Change user passwords
- User role management
- User lock/unlock functionality
-
User Types
- Super Admin (SprAdmin) - Full system access
- Admin - Standard administrative access
- Admin Dashboard
- Low stock alerts
- Minimum quantity warnings
- System status overview
- Quick access to critical functions
- Database Backup
- Database backup functionality
- SQL dump generation
- Data export capabilities
- Customizable Settings
- System name configuration
- Timezone settings
- Date/time formatting
- RTL (Right-to-Left) language support
- Arabic Language Support
- Full RTL (Right-to-Left) interface
- Arabic font support (Droid Arabic Naskh)
- Bilingual system labels
- Responsive design
-
Database Operations
- Prepared statements for SQL injection prevention
- UTF-8 character encoding
- Connection pooling
- Error handling and reporting
-
Performance
- Optimized database queries
- Indexed database tables
- Efficient data retrieval
- Session management
- Backend: PHP (with MySQLi)
- Database: MySQL
- Frontend: HTML5, CSS3, JavaScript
- UI Framework: Bootstrap 3, AdminLTE
- Icons: Font Awesome
- Language: Full Arabic (RTL) support
- Security: bcrypt password hashing, prepared statements, secure sessions
- โ Complete product lifecycle management (CRUD operations)
- โ Advanced inventory tracking with alerts
- โ Comprehensive order management system
- โ Multi-category payment tracking
- โ Credit/debt management for customers and suppliers
- โ Extensive reporting system (daily/monthly/yearly)
- โ Role-based access control
- โ Price history and tracking
- โ Supplier/manufacturer management
- โ User administration
- โ Arabic RTL interface
- โ Secure authentication system
- โ Audit trail for all operations
- โ Dashboard with real-time alerts
- Clean, modern AdminLTE interface
- Responsive design for mobile and desktop
- Intuitive navigation with sidebar menu
- Real-time form validation
- Autocomplete search functionality
- Contextual error messages
- User-friendly Arabic interface
- System designed for Arabic-speaking markets
- All timestamps track user who made changes
- Comprehensive audit trail for compliance
- Scalable architecture for business growth
- Secure coding practices implemented
This system is production-ready and includes enterprise-level features for managing a complete product sales operation.