From aa1c14e5088f9a8e90620aed6cb01f4d5eddc7cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Feb 2017 20:43:44 +0100 Subject: [PATCH] Remove change of PMP when we should not --- htdocs/product/class/product.class.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 71213bd923e..1b5efff1bfa 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -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);