Fix the repair tool to correct corrupted stock for batch numbers
This commit is contained in:
parent
a48c79b68b
commit
47d7ac8031
@ -545,7 +545,7 @@ if ($ok && GETPOST('clean_product_stock_batch'))
|
|||||||
print '<tr><td>'.$obj->rowid.'-'.$obj->ref.'-'.$obj->fk_entrepot.' -> '.$obj->psrowid.': '.$obj->reel.' != '.$obj->reelbatch;
|
print '<tr><td>'.$obj->rowid.'-'.$obj->ref.'-'.$obj->fk_entrepot.' -> '.$obj->psrowid.': '.$obj->reel.' != '.$obj->reelbatch;
|
||||||
|
|
||||||
// Fix
|
// Fix
|
||||||
if ($obj->reel > $obj->reelbatch)
|
if ($obj->reel != $obj->reelbatch)
|
||||||
{
|
{
|
||||||
$methodtofix='updatestock';
|
$methodtofix='updatestock';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user