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

Virtual product, batch, and stock #15129

Closed
laudeco opened this issue Oct 23, 2020 · 8 comments
Closed

Virtual product, batch, and stock #15129

laudeco opened this issue Oct 23, 2020 · 8 comments
Labels
Bug This is a bug (something does not work as expected) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed Feature request This is a feature request Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open

Comments

@laudeco
Copy link
Member

laudeco commented Oct 23, 2020

Hi everyone;

I have a doubt and I would like to understand why this action isn't possible.

I try to set the stock of a product composed of 1 other virtual product. Those products use the batch number.

When I try to set the stock of the parent product I receive this error message (sorry it's in french) ...
image

Can someone explain to me why this action isn't possible? Is it a bug?

I found in the code where to set the dates and the batch number but if it's not present I guess there is a reason ...

Cheers
L.

@laudeco laudeco added Bug This is a bug (something does not work as expected) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed labels Oct 23, 2020
@atm-maxime
Copy link
Member

My guess is that virtual product and module batch are not compatible with each other. Virtual product is used to have automatic stock movement, but movement can't be automated if you have to set a batch on it...

@laudeco
Copy link
Member Author

laudeco commented Oct 24, 2020

Why not by example if you have compress that are available in pack of 20 and also by unit

When you buy 20 units actually your stock of unit is increased by 20.

So actually there is no difference between the batch of the pack and the unit

Isn't it ?

Cheers

@atm-maxime
Copy link
Member

So in your case you use the virtual product to deal with packaging right ? I don't think it has been designed for that.
And what if your virtual product is composed with 2 sub products ? They surely won't have the same batch as the parent...

@laudeco
Copy link
Member Author

laudeco commented Oct 25, 2020

So in your case you use the virtual product to deal with packaging right ?
Indeed, do you have another solution to increase the stock by the number of products in the package?

And what if your virtual product is composed with 2 sub products ?
That's the only problem that I see. We may limit the usage of the batch on the virtual product only if there is one sub product.

What's your input @eldy @aspangaro ?

Cheers
L.

@eldy
Copy link
Member

eldy commented Nov 1, 2020

The virtual product is a feature to manage "Kit".
For example "Promotional kit of christmas" than contains 1 product A (chocolates) and 1 product B (oranges).
When you sell your kit for quantity 1, you must change stock for product A and product B. Lot/serial number for product A differs for product B, so automatic stock change is for the moment not possible. We must be able to manage the input of each lot/serial of each sub-product to be able to record a stock movement of a kit that contains sub-product that need lot/serial.

@eldy eldy added the Feature request This is a feature request label Nov 1, 2020
@laudeco
Copy link
Member Author

laudeco commented Nov 1, 2020

Ok
What about the problem of a pack?

Eg:
I sell one chocolate or a pack of 10 chocolate

In the first point I have to decrease my stock by one and in the other I have to decrease my stock by 10 but it's the same stock of the same product "chocolate"

How do you achieve that?

Cheers
L.

@prietojc
Copy link
Contributor

prietojc commented Nov 13, 2020

The matter that @laudeco comments affects several pending issues (#5342, #5824, #7210, #11653, #11636).
The source of the problem is that products typically come in multi-unit packages. You could think of doing three things:

  • A kit (virtual product)
  • A variant (sizes and colors)
  • A manufacture (BOM)

but it doesn't really fit either case. There is only one product packed in different size boxes.
The solution is to manage the packaging in some way and to be able to indicate:

  • Types of packaging
  • Units per package
  • Reference
  • Size, volume, weight.

As a minimum, you would have to add a field in the product file that indicates the number of units per package (I have an extrafield), but I think the best in the long term would be to move and group everything in a new characteristics tab along with:

  • Nature of the product
  • Weight
  • Length x Length x Height
  • Surface
  • Volume
  • Packaging (with the possibility of several definitions)

@github-actions
Copy link

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).

@github-actions github-actions bot added the Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open label Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed Feature request This is a feature request Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open
Projects
None yet
Development

No branches or pull requests

4 participants