From 47d7ac8031ad1d8cc5d17a1081ed1433c51cb23a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Jul 2016 23:11:55 +0200 Subject: [PATCH] Fix the repair tool to correct corrupted stock for batch numbers --- htdocs/install/repair.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php index e354b2a30da..952c22baa44 100644 --- a/htdocs/install/repair.php +++ b/htdocs/install/repair.php @@ -545,7 +545,7 @@ if ($ok && GETPOST('clean_product_stock_batch')) print ''.$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';