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

New allow modify stock_theorique, not only replace by hook. #26398

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

fappels
Copy link
Contributor

@fappels fappels commented Oct 31, 2023

New

Not only replace virtual stock calculation but also allow modify virtual stock by some additional stat.
For example #26384 reduce by quarantine stock.

@eldy eldy merged commit 48ddc24 into Dolibarr:develop Oct 31, 2023
3 checks passed
@Ashley-Butcher
Copy link

I don't think virtual stock should be used for quarantine stock. This is a bad idea and breaks the inventory valuation model. This is not a good use case.

@fappels
Copy link
Contributor Author

fappels commented Oct 31, 2023

@Ashley-Butcher Is only hook for external module. Made this PR after reading comments on your issue to see if possible to modify virtual stock calculation by hook. Not really related to your issue, only gave idea. Before hook replace all calculation, for me make no sense, is same as override load_virtual_stock function.

@fappels fappels deleted the 19_update_hook_virtual_stock branch October 31, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants