Remove change of PMP when we should not

This commit is contained in:
Laurent Destailleur 2017-02-06 20:43:44 +01:00 committed by GitHub
parent 8e9a9637a0
commit aa1c14e508

View File

@ -3530,9 +3530,6 @@ class Product extends CommonObject
require_once DOL_DOCUMENT_ROOT .'/product/stock/class/mouvementstock.class.php';
// If remove stock then save it the actual PMP as price (the new calculation of PMP is triggered only with $movement = 0 || 3 )
if ($movement == 1) $price = $this->pmp;
$op[0] = "+".trim($nbpiece);
$op[1] = "-".trim($nbpiece);
@ -3581,9 +3578,6 @@ class Product extends CommonObject
require_once DOL_DOCUMENT_ROOT .'/product/stock/class/mouvementstock.class.php';
// If remove stock then save it the actual PMP as price (the new calculation of PMP is triggered only with $movement = 0 || 3 )
if ($movement == 1) $price = $this->pmp;
$op[0] = "+".trim($nbpiece);
$op[1] = "-".trim($nbpiece);