[v22.0.4] Native Perpetual Inventory vs. Incompatible External Modules

Hello community,

I am deploying Dolibarr v22.0.4 for a Canadian distribution company and we require Perpetual Inventory (Cost of Goods Sold / COGS generated at the time of shipment/delivery, not just at invoicing).


DOLIBARR ENVIRONMENT

  • Version: 22.0.4
  • Operating System: Online Plesk Server - Sectorlink
  • Web Server: PLESK : Version Apache
  • PHP: 8.3.30 - run PHP as FPM Application
  • Database: MySQL or MariaDB 10.6.25-MariaDB
  • URL(s): Mysite.com/product/stock/card.php
  • PHP-FPM settings:
    pm.max_children 30
    pm.max_requests 0
    pm ondemand
    pm.start_servers 1
    pm.min_spare_servers 1
    pm.max_spare_servers 1
    memory_limit 512M (Default)
    max_execution_time 30 (Default)
    max_input_time 60 (Default)
    post_max_size 64M (Default)
    upload_max_filesize 64M (Default)
    opcache.enable on (Default)
    disable_functions opcache_get_status

The Challenge:

  1. The well-known “Perpetual Inventory” module from DoliStore is not compatible with v22.0.4.
  2. I have the Accounting (Double Entry) and Stock modules active.
  3. I have tried activating ACCOUNTING_ENABLE_WAREHOUSE = 1 and MAIN_FEATURES_LEVEL = 2 in Other Setup, but I still do not see the permissions to link warehouses to accounting accounts.

My Questions:

  1. Does v22.0.4 now support native perpetual inventory (COGS generation upon shipment) within the Advanced Accounting module without third-party add-ons?
  2. If so, what is the specific “magic toggle” to enable the recording of stock valuation movements in the General Ledger (Journalization of Inventory Asset vs. COGS)?
  3. Is there a specific class or trigger in v22 that replaced the old perpetual inventory logic?

Any guidance on the “v22 way” to handle real-time inventory accounting would be life-saving.

Thanks in advance,

Sterling
The True North - Canada