-
-
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 #30230
NEW : allow stock management by product #30230
Conversation
Change into language file htdocs/langs/fr_FR/products.lang is not allowed (only en_US is allowed for language files) |
htdocs/expedition/card.php
Outdated
} | ||
|
||
if ($p->stockable_product == Product::DISABLED_STOCK) { | ||
$w = new Entrepot($db); |
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.
If product is not stockable, we have no reason to manage some warehouses.
The "passing test" should be move by changing the test that is blocking later to take into account product status.
htdocs/expedition/card.php
Outdated
$w_Id = array_keys($Tw); | ||
$stockLine[$i][$j]['qty'] = GETPOST($qty, 'int'); | ||
|
||
// lorsque que l'on a le stock désactivé sur un produit/service |
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.
French comment not allowed
/** | ||
* 0=This service or product is not managed in stock, 1=This service or product is managed in stock | ||
* | ||
* @var boolean |
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.
@var int
* | ||
* @var boolean | ||
*/ | ||
public $stockable_product = true; |
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.
public $stockable_product = 1;
…w to create expedition lines without stock management.
@eldy I guess all threads can be resolved, and the checks pass. Can you have another look at this PR ? Thanks 👍 |
closing and restarting from branch Develop since file expedition.class.php has been split and there is no easy way to resolve conflicts. see #30996 |
NEW : allow stock management by product
When using product stocks, users may want to have some products for which they don't want to manage stocks, for example in case of subcontracting.
This PR:
Discussion started on #26184 and #26200
SQL Part : #26190