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

CLOSE #26384 Implement STOCK_USE_WAREHOUSE_USAGE for use of non-counting warehouses e.g. quarantine #30199

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

DaBootO
Copy link
Contributor

@DaBootO DaBootO commented Jun 29, 2024

CLOSE #26384 Implement STATUS_OPENEXT_ALL for use of non-counting warehouses e.g. quarantine

This feature complements the need explained in #26384 and the implementation of the STATUS_OPENEXT_ALL warehouse type. With the changes a warehouse can be used e.g. as a quarantine warehouse or a temporary pre-QC warehouse. The status "Open (omitted from stock calculation)" keeps the definition vague enough as not to constrain the use of this status too much in the sense of "either quarantine or pre-QC".
For code-readability and convenience the change is using the load_stock and loadWarehouses implementation. As the option of warehouseclosed, warehouseopen and warehouseinternal is already introduced in the code we can piggyback ride with the introduction of the STATUS_OPENEXT_ALL onto the product list view, stock transfer, delivery selection etc.

…ting warehouses e.g. quarantine

This feature complements the need explained in Dolibarr#26384 and the implementation of the STATUS_OPENEXT_ALL warehouse type. With the changes a warehouse can be used e.g. as a quarantine warehouse or a temporary pre-QC warehouse. The status "Open (omitted from stock calculation)" keeps the definition vague enough as not to constrain the use of this status too much in the sense of "either quarantine or pre-QC".
For code-readability and convenience the change is using the load_stock and loadWarehouses implementation. As the option of warehouseclosed, warehouseopen and warehouseinternal is already introduced in the code we can piggyback ride with the introduction of the STATUS_OPENEXT_ALL onto the product list view, stock transfer, delivery selection etc.
htdocs/product/class/product.class.php Outdated Show resolved Hide resolved
@eldy eldy added the PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) label Jun 30, 2024
DaBootO and others added 3 commits June 30, 2024 13:31
…non-counting warehouses e.g. quarantine"

This reverts commit 0d069b4.
…on-counting warehouses e.g. quarantine

This feature implements the global variable of STOCK_USE_WAREHOUSE_USAGE. This variable allows warehouses to exclude their products from stock calculations. A button was added to the stock module in the admin panel. A simple "AND" check for the warehouse_usage column in the entrepot SQL table is added to the load_stock function to facilitate this change.
@DaBootO DaBootO changed the title Patch noncounting stock CLOSE #26384 Implement STATUS_OPENEXT_ALL for use of non-counting warehouses e.g. quarantine Jul 4, 2024
@DaBootO DaBootO changed the title CLOSE #26384 Implement STATUS_OPENEXT_ALL for use of non-counting warehouses e.g. quarantine CLOSE #26384 Implement STOCK_USE_WAREHOUSE_USAGE for use of non-counting warehouses e.g. quarantine Jul 4, 2024
@DaBootO
Copy link
Contributor Author

DaBootO commented Jul 6, 2024

I am very sorry! I am pretty new to PRs and how my local developments is being reflected in this PR timeline. Sorry for clogging up stuff with all those name changes and pulling the new develop branch from upstream -.-

@lmag lmag assigned lmag and FHenry Jul 12, 2024
@lmag
Copy link
Member

lmag commented Jul 12, 2024

Thank you for this very good first proposition 👍
Traduction should be change like this :

  • Entrepôt Interne -> Inclus dans le stock disponible
  • Entrepôt externe) -> Exclus du stock disponible
  • Utilisation de entrepôt -> Fonction Entrepot

@DaBootO
Copy link
Contributor Author

DaBootO commented Jul 12, 2024

Thank you for this very good first proposition 👍 Traduction should be change like this :

  • Entrepôt Interne -> Inclus dans le stock disponible
  • Entrepôt externe) -> Exclus du stock disponible
  • Utilisation de entrepôt -> Fonction Entrepot

Thank you very much! I changed the translation keys in the en_US version as to CONTRIBUTING.md
Hope this was correct

@DaBootO DaBootO requested a review from eldy July 12, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request - Quarantine warehouse
4 participants