Ticket #1926 (new enhancement)

Opened 14 months ago

Last modified 4 months ago

Simple inventory checking

Reported by: Henk Poley Owned by: sharvey
Priority: medium Milestone: E-commerce 0.7.0
Component: Modules - ecommerce Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

May I ask if there are any plans for simple inventory checking? Something like:

[X] Use inventory limits: Items left: 123 [+] [-] <14> Warning level: <5> <mail@…>

As long as the ecommerce backend won't remove completed orders, best would be to have one counter that tracks *all* of a single product: history (sold) + reserved (unpaid) + current inventory (stocked). And then calculate the appropriate values by substracting the others.

Else you are in for some nice race conditions when setting new inventory values.

Change History

Changed 6 months ago by rlouis

  • owner changed from sharvey to rlouis
  • milestone set to E-Commerce 0.6.0

This concept of Stock is a really good idea and has been set in the Events module for instance (tickets limitation) and will be generalize to the ecommerce later on.

The best way to do it I think is to make it a DataObjectDecorator?.

By doing that, the user can add the Stock functionalities if he wants to.

Of course, if it's set, the add functionalities and the validation for order behaviours will have to take care of the stock system.

I'm still not sure it's doable for Ecommerce 0.6 because of all the other major issues that need to be done for the next release.

Changed 6 months ago by sminnee

  • milestone changed from E-Commerce 0.6.0 to E-commerce 0.7.0

Your comments on implementation sound good, but I think that this is best left until 0.7

Changed 4 months ago by sharvey

  • owner changed from rlouis to sharvey
Note: See TracTickets for help on using tickets.