Fix the repair tool to correct corrupted stock for batch numbers

This commit is contained in:
Laurent Destailleur 2016-07-08 23:11:55 +02:00
parent a48c79b68b
commit 47d7ac8031

View File

@ -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;
// Fix
if ($obj->reel > $obj->reelbatch)
if ($obj->reel != $obj->reelbatch)
{
$methodtofix='updatestock';