Overview
The Stakeholder Management system handles both customers and suppliers, providing a unified interface for managing business relationships, contact information, and transaction preferences.Stakeholders are linked to inventory movements, enabling traceability for purchases (suppliers) and sales (customers).
Stakeholder Types
Customers
Individuals or businesses who purchase your products
Suppliers
Vendors who provide inventory to your business
Customer Management
Customers represent the buyers in your sales transactions.Customer Data Model
Customer Attributes
Customer name or business name
Document type:
RUC, DNI, or OTROUnique document number (tax ID or national ID)
Customer address
Contact phone number
Email address (must be unique)
Payment terms:
CONTADO (cash) or CREDITO (credit)Document Types
RUC - Tax ID
RUC - Tax ID
For businesses and registered companies. Used for tax reporting and invoicing.
DNI - National ID
DNI - National ID
For individual customers using their national identification number.
OTRO - Other
OTRO - Other
For alternative document types like passports or foreign IDs.
Payment Conditions
CONTADO (Cash)
Payment required at time of sale
CREDITO (Credit)
Payment terms extended to customer
Customer UI Example
Supplier Management
Suppliers are vendors who provide inventory to your business.Supplier Data Model
Supplier Attributes
Supplier business name
Document type (typically “RUC” for businesses)
Unique tax identification number
Standard delivery time in days
Purchase terms and conditions (payment terms, minimum order quantities, etc.)
Supplier-Specific Fields
Delivery Time (plazo_entrega_dias)
Delivery Time (plazo_entrega_dias)
Track typical lead times for each supplier to better manage reordering schedules.Example: If Supplier A has a 7-day lead time, you can set reorder points accordingly.
Purchase Conditions (condiciones_compra)
Purchase Conditions (condiciones_compra)
Store important purchasing terms such as:
- Minimum order quantities
- Payment terms (e.g., “Net 30”)
- Bulk discount structures
- Return policies
Unified Search
Search across both customers and suppliers simultaneously:Search Parameters
Search query (searches name and document number)
Filter by type:
all, customer, or supplierMaximum number of results to return
Search Bar Component
The search bar provides autocomplete functionality, making it easy to link stakeholders to transactions.
Integration with Movements
Stakeholders are automatically linked to inventory movements:Entry Movements (Suppliers)
Exit Movements (Customers)
While the current implementation focuses on batch-level tracking, customer IDs can be associated with sales movements for CRM purposes.CRUD Operations
Creating a Customer
Create Customer
POST
/api/v1/customers/Creates a new customer record.Creating a Supplier
Create Supplier
POST
/api/v1/suppliers/Creates a new supplier record.Validation Rules
Required Fields
nombre(name)tipo_documento(document type)numero_documento(document number)condicion_pago(customers only)
Unique Constraints
numero_documentomust be uniqueemailmust be unique (if provided)
Role-Based Access
Stakeholder management respects user roles:Admin
Admin
Full CRUD access for both customers and suppliers
Gestor (Manager)
Gestor (Manager)
Full CRUD access for both customers and suppliers
Consultor (Viewer)
Consultor (Viewer)
Read-only access, can search and view but cannot create/edit/delete
Best Practices
Complete Profiles
Fill in all contact information for better communication and record-keeping
Verify Documents
Ensure document numbers are accurate for tax compliance and invoicing
Set Payment Terms
Clearly define payment conditions to avoid confusion
Track Supplier Terms
Record delivery times and purchase conditions for better inventory planning
Traceability Benefits
Linking stakeholders to movements enables:Supplier Performance Analysis
Track which suppliers provide the best quality, pricing, and delivery times
Batch Recall Management
Quickly identify all customers who received products from a specific supplier batch
Stakeholder Form
The unified form component handles both customers and suppliers:Search and Filter
The customer and supplier pages include search functionality:Related Documentation
Stock Movements
Link stakeholders to transactions
Batch Tracking
Supplier traceability for batches
API Reference
Complete API documentation