Fixed: pmp update after makign a stock move.

This commit is contained in:
Laurent Destailleur 2015-01-12 20:55:15 +01:00
parent 34a1ea4bb8
commit e6d016cc48

View File

@ -199,7 +199,8 @@ if ($action == "transfert_stock" && ! $cancel)
// Define value of products moved
$pricesrc=0;
if (isset($product->stock_warehouse[GETPOST("id_entrepot_source")]->pmp)) $pricesrc=$product->stock_warehouse[GETPOST("id_entrepot_source")]->pmp;
//if (isset($product->stock_warehouse[GETPOST("id_entrepot_source")]->pmp)) $pricesrc=$product->stock_warehouse[GETPOST("id_entrepot_source")]->pmp;
if (isset($product->pmp)) $pricesrc=$product->pmp;
$pricedest=$pricesrc;
$pdluoid=GETPOST('pdluoid','int');