-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 stock management by product #30996
Closed
thomas-Ngr
wants to merge
35
commits into
Dolibarr:develop
from
Easya-Solutions:develop_new-stockableproduct_3
Closed
Changes from 22 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a5a4452
Code part
aspangaro ac4fc5f
Code part 2
thomas-Ngr 1fe5797
Fix : invert a const
thomas-Ngr 0bf0f34
Fix : invert disable/enable stock values
thomas-Ngr 5b7e4b4
Fix
MaximilienR-easya f6447b1
Fix missing column from select inside sql request
MaximilienR-easya b19f8af
Fix input hidden missing name
MaximilienR-easya a24edc2
ajout d'un commentaire
MaximilienR-easya 11c7050
small fixes
uvaldenaire-opendsi 7a531bb
remove unrelated lines
thomas-Ngr b03bdf1
phpcs
MaximilienR-easya d96a1b8
stickler fix
thomas-Ngr b5d2477
pre-commit fixes
thomas-Ngr d43d822
pre-commit fixes
thomas-Ngr 42f81af
pre-commit fix
thomas-Ngr f2466be
fix missing translation
thomas-Ngr 06a748c
Fix phpstan
thomas-Ngr 9b02c45
fix winCI
thomas-Ngr b32b54b
fix travis
thomas-Ngr b6f22b3
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr a0b8d48
fix phpstan
thomas-Ngr 0113a02
fix travis (hopefully)
thomas-Ngr 151692f
remove useless lines
thomas-Ngr 3b5a5f9
relaunch tests
thomas-Ngr 2e19b5f
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr 55aefbf
change stockable_product type from bool to int
thomas-Ngr 2407fe0
change test in Expeditin::addline() to allow adding a line for produc…
thomas-Ngr 392bc14
make stock management mandatory for products with batch number
thomas-Ngr e76a7b2
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr fc48a39
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr 57b91c9
Merge remote-tracking branch 'origin/develop' into develop_new-stocka…
thomas-Ngr 8834529
try to remove PHAN errors
thomas-Ngr 82cc1ac
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr 000ac27
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr 51244bf
Merge branch 'develop' into develop_new-stockableproduct_3
thomas-Ngr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of code from line 366 to 389 looks strange:
Currently, default is to have all product managed as stockable.
So we should have code added to avoid to do something when product is not stock managed. But here yo add code to do more things when stock is not managed.
I think we should not have this part of code from line 366 to 389 and we should have the code to do or not action depending of stockable status somewhere later.
If we remove this part of code, where does the program hangs ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I changed the test in Exepedition::addline() to not test stock remaining if product is not managed in stock. see 2407fe0.
For products with a batch/serial, it makes sense to force stock management. I made some changes in product/card to avoid having batch/lot products not managed in stock.