is documentation for oms reservations up to date? How to sync reservations across stores in DMS?

victor.vanherpt
victor.vanherpt Spryker Solution Partner Posts: 69 🪐 - Explorer

Hi all :)
When setting up our store, we tried to use the storesWithSharedPersistence setting, which never worked for us.
This setting is described at
https://docs.spryker.com/docs/pbc/all/warehouse-management-system/202410.0/base-shop/extend-and-customize/inventory-management-feature-modules-overview.html#availability-per-store (which we are getting pointed at as well by Spryker support).

Do you know if the documentation is up to date? (Besides the references to stores.php vs DMS of course).

I tried investigating a bit, and I saw no reference to storesWithSharedPersistence within the Availability and AvailabilityStorage modules (well, besides a reference in a Transfer definition, which feels like a leftover maybe)

What would be the current "proper" way to sync reservations across stores in a single-db dynamic-multi-store setup? Any hints? (I saw the separate databases with Export/Import reservations setup, but feels like a nest for race-conditions if not handled quickly, and I'd rather not have to setup something custom :P)

Answers

  • victor.vanherpt
    victor.vanherpt Spryker Solution Partner Posts: 69 🪐 - Explorer

    I would be nice to get some hints from someone at Spryker. From support we are told to configure storesWithSharedPersistence.

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 51 🧑🏻‍🚀 - Cadet

    Hey, Victor!
    Could you describe a bit more what a problem you are facing?

    What I can see from code, when we update availability with DMS mode ON, we are getting all available stores in the same database. `storesWithSharedPersistence` thingy makes a little sense in the DMS context as all store in the same database from the beginning.

    We'll schedule a documentation update, but if you have some issues please ping me via Slack or here

  • victor.vanherpt
    victor.vanherpt Spryker Solution Partner Posts: 69 🪐 - Explorer


    So, my problem here specifically can be reproduced in the b2b demoshop, and DMS makes it even more evident:
    To reproduce this:

    Boot your app with /deploy.dev.yml

    For the sake of reproducing, we're going to track product 104937(Dauphin vertebral disc swivel chair, synchronous mechanism)

    image.png


    First, add products to the 2nd warehouse, so they are available on the AT store:
    (for the sake of reproducing, just duplicate current stock import file in , replace Warehouse1 with Warehouse2)

    image.png


    Now I place an order for a product in the DE store :

    image.png image.png

    This product is reserved 7 times in the DE shop:

    image.png

    By default, in the AT shop, the reservation is not present:

    image.png

    So, by default reservations are not being synced, and the documentation is outdated, and the configuration options in the code are dead ends if that is the case.