Inventory tracking
Inventory is tracked at the product level through theProducto model. Every product maintains its current stock quantity and minimum stock threshold.
Stock fields
Current quantity available in inventory. Updated automatically with sales and purchases. Defaults to 0
Reorder point threshold. When stock falls below this level, the product needs replenishment. Defaults to 5
Automated inventory adjustments
TechCore Mini ERP automatically manages inventory levels through database triggers, eliminating manual stock adjustments and reducing errors.Stock decrease on sales
When products are sold, inventory decreases automatically:Stock updated
Product stock is decreased by the quantity sold, but only if the sale is valid (not voided).
Voided sales (where
ventas.nula = 1) do not affect inventory. The trigger only processes valid transactions.Database trigger implementation
Stock increase on purchases
When products are received from suppliers, inventory levels increase through the purchase order process. Purchase details are recorded in thecomprasDetalle table, and stock quantities are updated accordingly.
Reorder point monitoring
The system provides intelligent low stock detection to prevent stockouts.How reorder points work
Set minimum levels
Configure
StockMinimo for each product based on sales velocity and supplier lead timeAutomatic detection
The indexed
IDX_productos_stock enables fast queries to identify products below reorder pointsReorder alerts
Generate reports of products where
Stock < StockMinimo to trigger purchase ordersPrevent stockouts
Proactive reordering ensures continuous product availability
Reorder point query
Identify products requiring replenishment:Inventory valuation
Calculate inventory value using purchase and sale prices stored in the product catalog.Valuation methods
- Cost value
- Retail value
- Profit potential
Calculate inventory value at purchase cost:This represents the total capital invested in current inventory.
Inventory movements
Track how inventory changes over time through transaction details.Sales movements
Query sales history to see inventory outflows:Purchase movements
Query purchase history to see inventory inflows:User workflows
Monitoring stock levels
View current inventory
Access the products list to see current
Stock levels for all active products.Identify low stock
Filter products where stock is below the minimum threshold to identify reorder needs.
Setting reorder points
Analyze sales velocity
Review historical sales data to determine average daily demand for each product.
Creating purchase orders from low stock
Generate low stock report
Query products where
Stock < StockMinimo to identify items needing replenishment.Calculate order quantities
Determine how much to order:
OrderQuantity = StockMinimo - Stock + SafetyBufferInventory reconciliation
Periodically verify physical inventory matches system records:Identify variances
Compare physical counts to system records and investigate significant differences.
Best practices
Reorder point optimization
Reorder point optimization
- Review and adjust
StockMinimoquarterly - Account for seasonal demand variations
- Consider supplier reliability when setting safety stock
- Use higher safety stock for critical, fast-moving products
- Monitor stockout incidents to refine reorder points
Inventory accuracy
Inventory accuracy
- Perform cycle counts regularly rather than annual full counts
- Investigate and resolve discrepancies immediately
- Train staff on proper receiving procedures
- Verify sale transactions are not voided incorrectly
- Maintain secure storage to prevent unauthorized inventory movements
Stock level management
Stock level management
- Avoid overstocking slow-moving items to reduce carrying costs
- Maintain higher stock of fast-moving products
- Use ABC analysis to prioritize inventory management efforts
- Monitor aged inventory and mark down or liquidate old stock
- Balance stock levels with storage capacity constraints
Reporting and analysis
Reporting and analysis
- Generate weekly low stock reports for proactive reordering
- Track inventory turnover ratio by product and category
- Monitor stock-to-sales ratios to optimize inventory investment
- Analyze stockout incidents to improve service levels
- Review inventory value trends monthly
System integration
System integration
- Ensure sales staff understand that stock updates automatically
- Train receiving staff on purchase order receipt procedures
- Verify triggers are functioning correctly after database maintenance
- Monitor for negative stock levels indicating data errors
- Document any manual stock adjustments with clear justifications
Key performance indicators
Monitor these metrics to optimize inventory management:Stock coverage
Days of supply available:
Stock ÷ Average Daily SalesInventory turnover
How many times inventory is sold and replaced:
Annual Sales ÷ Average Inventory ValueFill rate
Percentage of orders fulfilled from stock:
Orders Filled ÷ Total OrdersCarrying cost
Cost to hold inventory:
Average Inventory Value × Annual Carrying Cost %