From 2843dde11561afce1d42f63866d16f61a1b5f8a7 Mon Sep 17 00:00:00 2001 From: bMancone Date: Wed, 12 Oct 2011 13:55:18 +0000 Subject: [PATCH] // StockManager->removeProduct() WA : added last wa & current wa when removing --- classes/stock/StockManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/stock/StockManager.php b/classes/stock/StockManager.php index 8c8250af6..7c3b6ffbb 100644 --- a/classes/stock/StockManager.php +++ b/classes/stock/StockManager.php @@ -235,14 +235,14 @@ class StockManagerCore implements StockManagerInterface 'id_stock_mvt_reason' => $id_stock_mvt_reason, 'id_order' => $id_order, 'price_te' => $stock->price_te, + 'last_wa' => $stock->price_te, + 'current_wa' => $stock->price_te, 'id_employee' => $context->employee->id, 'sign' => -1 ); $stock_params = array( 'physical_quantity' => ($stock->physical_quantity - $quantity), 'usable_quantity' => ($is_usable ? ($stock->usable_quantity - $quantity) : $stock->usable_quantity), - 'last_wa' => $stock->price_te, - 'current_wa' => $stock->price_te, 'id_currency' => (int)Configuration::get('PS_CURRENCY_DEFAULT') );