Supplier entity
Suppliers are stored in theProveedore model with the following fields:
Unique supplier code identifier (primary key)
Full name or business name of the supplier
Phone number for supplier contact (max 15 characters)
Email address for supplier communications (max 200 characters)
Physical address or business location (max 300 characters)
Supplier status flag (1 = active, 0 = inactive). Defaults to 1
Timestamp when the supplier record was created. Automatically set to current date/time
Database schema
Indexes
The suppliers table includes the following indexes for optimized query performance:IDX_proveedores_nombre- Index on supplier name for fast name-based searchesIDX_proveedores_estado- Index on status for filtering active/inactive suppliers
Relationships
Suppliers have a one-to-many relationship with purchase orders:- Compras (Purchases): A supplier can have multiple purchase orders. The relationship is established through the
codprovforeign key in thecomprastable.
User workflows
Adding a new supplier
Create supplier code
Assign a unique identifier in the
Codprovee field. This code will be used to reference the supplier across all purchase transactions.Enter supplier name
Provide the supplier’s business name or full name in the
Nombre field. This is a required field.Add contact information
Include the supplier’s phone number, email address, and physical address to facilitate communication and order processing.
Managing supplier status
TheEstado field controls supplier availability in the system:
- Active suppliers (
Estado = 1) appear in dropdown lists when creating purchase orders - Inactive suppliers (
Estado = 0) are excluded from active supplier lists but their purchase history remains available
Viewing supplier purchase history
Each supplier record maintains a collection of all associated purchase orders through theCompras navigation property. This enables you to:
- Review all purchases made from a specific supplier
- Analyze supplier pricing trends over time
- Track delivery performance and reliability
- Calculate total spending per supplier
- Identify preferred suppliers based on purchase volume
Searching for suppliers
The database indexes support efficient searching:- Supplier name: Search by full or partial business name
- Status filter: Display only active or inactive suppliers
- Supplier code: Direct lookup using the unique identifier
Supplier evaluation
Key metrics to track
Use the supplier purchase history to evaluate vendor performance:Purchase volume
Total value and quantity of purchases from each supplier
Purchase frequency
How often you order from specific suppliers
Product range
Variety of products supplied by each vendor
Historical data
Complete purchase history with dates and amounts
Best practices
Supplier code conventions
Supplier code conventions
Use a consistent naming system for supplier codes:
- Company initials:
ACMEfor ACME Corporation - Sequential numbers:
SUP001,SUP002 - Category prefix:
TECH-001for technology suppliers,OFF-001for office supplies
Contact information accuracy
Contact information accuracy
- Verify all contact details when onboarding new suppliers
- Request multiple contact persons for critical suppliers
- Keep emergency contact numbers for essential vendors
- Update contact information promptly when suppliers notify changes
Supplier relationship management
Supplier relationship management
- Document payment terms and conditions for each supplier
- Maintain notes about supplier specialties and limitations
- Track supplier lead times for better inventory planning
- Review inactive suppliers periodically for potential reactivation
Data maintenance
Data maintenance
- Consolidate duplicate supplier records
- Archive historical supplier data according to retention policies
- Perform regular audits of supplier information accuracy
- Document reasons for supplier deactivation
Integration with purchasing
Suppliers are integral to the purchasing workflow:- Purchase order creation: Select active suppliers when creating new purchase orders
- Inventory replenishment: Reference supplier purchase history to identify reliable sources
- Cost tracking: Monitor purchase costs across different suppliers for the same products
- Vendor comparison: Analyze supplier performance to optimize procurement decisions