Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory Not Updated After Order Creation with Status "Delivered" #2057

Open
ARMC0DE opened this issue Jan 6, 2025 · 1 comment
Open

Inventory Not Updated After Order Creation with Status "Delivered" #2057

ARMC0DE opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@ARMC0DE
Copy link

ARMC0DE commented Jan 6, 2025

Lunar version: 1.0.0-beta6
Laravel Version: 11.33.2
PHP Version: 8.3.14
Database Driver & Version: Mysql 8.0

Expected Behaviour:

When creating an order with a "Delivered" status, the inventory for the products in the order should decrease by the ordered quantity.

For example:

Product 1 inventory before order: 200
Product 1 in order: 10 units
Product 1 inventory after order: 190

Actual Behaviour:

The inventory for the products in the order remains unchanged.
For example:

Product 1 inventory before order: 200
Product 1 in order: 10 units
Product 1 inventory after order: 200

Steps To Reproduce:

Create a new order with products (e.g., Product 1, quantity: 10).
Set the order status to "Delivered" during creation.
Check the inventory for the products included in the order.

If possible, could you clarify where I should investigate this issue? I couldn't find anything related in the documentation. Could it be a configuration issue, or is there additional logic I need to implement manually?

@ARMC0DE ARMC0DE added bug Something isn't working unconfirmed labels Jan 6, 2025
Copy link
Contributor

This is something you need to manually implement for the moment. We do have "proper" inventory planned for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants