Promotions

  • CRM 360

    This module provides a comprehensive overview of customer interactions and data, centralizing all relevant information in one place.

    175.00 €  (350€)
  • Skin QuaranteDeux

    Skin quarante deux features: Compatibility with Dolibarr version v.18.00.00 & above. Seamless operation with PHP 8. Discover a new visual experience with our highly anticipated feature: dark mode!

    120.00 €  (240€)

New products

  • SMART BANK IMPORT

    Smart Bank Import is an interface that connects to your bank and allows you, in just a few clicks, to create and link Dolibarr elements: generate supplier invoices, record customer payments, manage salaries and taxes…From your Android app, you can also scan invoices directly into Smart Bank Import — the scanned documents are automatically converted into PDF files.

    69.00 €
  • Unused Credit Notes List

    Adds a menu in customer invoicing to display the list of credit notes and deposits, used or unused, with direct access to the related documents.

    49.00 €

Compostock

mp1246d20250923165256

New

Real-time smart stock calculation for virtual products (kits). Automatically combines physical kit stock with assemblable quantities based on component availability. Updates instantly on every stock movement with multi-level kit support and bottleneck detection.

80.00 €

  • Author Massaoud Bouzenad
  • Module version 1.0.0
  • Release date 09/23/2025
  • Access to updates and downloads 365 days
  • How to contact support products@dzprod.net
  • Compatibility Dolibarr V12 - V22   -   PHP>= 7.4
  • Last update 09/26/2025 12:49 PM

More info

Smart Kit Stock Management for Dolibarr

Compostock optimizes the management of your virtual products (kits) by providing real-time visibility into your actual available stock. No more guesswork, get precise calculations that combine physical kit stock with assemblable quantities.

Key Features

  • Automatic Calculation - Real-time stock updates via intelligent triggers
  • Multi-Level Kits - Support for nested kits up to 2 levels deep
  • Limiting Component Detection - Instantly identify bottleneck components
  • Performance Optimized - Built for high-volume environments with smart caching
  • Configurable Behavior - Choose between automatic or manual recalculation
  • Non-Intrusive Design - Uses extrafields, no core table modifications

How It Works

The magic formula: Compostock = Physical_Stock + MIN(component_stock / required_quantity)

Example: Kit ABC (2×A + 3×B + 1×C)

  • Physical kit stock: 5 units
  • Components: A=10, B=8, C=12
  • Assemblable: MIN(10/2, 8/3, 12/1) = MIN(5, 2, 12) = 2
  • Total Compostock = 5 + 2 = 7 available kits

🔄 Automatic Stock Recalculation

Compostock automatically updates kit availability whenever stock movements occur:

  • Component Stock Changes - When components are received, shipped, or consumed, all impacted kits are instantly recalculated
  • Kit Stock Movements - Direct kit entries/exits automatically update the physical stock portion
  • Smart Cascade Updates - Multi-level kits are recalculated recursively when sub-components change
  • Real-time Visibility - Sales teams always see current assemblable quantities without manual intervention

Example: When component A stock drops from 10 to 6, Kit ABC availability instantly updates from 7 to 6 units (5 physical + 1 assemblable)

Business Benefits

  • Accurate Sales Forecasting - Know exactly what you can sell
  • Optimized Purchasing - Identify which components to reorder
  • Reduced Waste - Prevent overproduction and obsolete inventory
  • Improved Planning - Make informed decisions based on real data

Technical Excellence

  • ✅ Compatible with Dolibarr 12.0+
  • ✅ Multi-entity support
  • ✅ Trigger-based automation
  • ✅ Manual recalculation tools
  • ✅ Performance monitoring
  • ✅ Comprehensive diagnostics

Perfect For

  • Manufacturing companies with assembly processes
  • Distributors managing product kits
  • Retailers with bundle products
  • Any business combining components into finished products

Future Evolution & Extensions

Compostock lays the foundation for advanced industrial management features:

📦 Cannibalization & Component Recovery

  • Extended Recomposable Stock - Calculation including recoverable components from other products in stock
  • Dismountable Parts Management - Automatic identification of recoverable components through disassembly
  • Multi-Source Optimization - Suggest the best assembly/recovery combination to maximize availability

🔧 Simplified Assembly/Disassembly

  • Lightweight BOM Alternative - For simple assemblies without complex manufacturing processes
  • Manual Operations - Ideal for screwdriver assembly, clipping, simple screwing
  • Instant Actions - No planning or heavy resources required
  • Logistics Focus - Optimized for stock management, not industrial production

Example: Click "Disassemble Kit ABC" → Kit stock -1, Stock A +2, Stock B +3, Stock C +1 automatically

Installation: Simply install and activate - works out of the box with intelligent defaults!

🔧 Required Setup: Configure your kits with incdec=0 to avoid double-counting between kit and component stocks.