From 7cbf2dc4fab65627745a9732f2f87bbcefa74f6d Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 5 Mar 2012 14:27:13 +0000 Subject: [PATCH] // Normalize --- classes/stock/StockMvt.php | 2 +- classes/stock/StockMvtReason.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/stock/StockMvt.php b/classes/stock/StockMvt.php index d7c6a5b6f..52975c1a8 100644 --- a/classes/stock/StockMvt.php +++ b/classes/stock/StockMvt.php @@ -164,7 +164,7 @@ class StockMvtCore extends ObjectModel /** * @deprecated since 1.5.0 * - * This method no longer exists, and have no equivalent because of the missing movements have to be handle by inventories on real stock. + * This method no longer exists, and have no equivalent because the missing movements have to be handled by inventories. */ public static function addMissingMvt($id_employee) { diff --git a/classes/stock/StockMvtReason.php b/classes/stock/StockMvtReason.php index b81fabd51..353d8be8d 100644 --- a/classes/stock/StockMvtReason.php +++ b/classes/stock/StockMvtReason.php @@ -136,6 +136,7 @@ class StockMvtReasonCore extends ObjectModel $query->from('stock_mvt_reason', 'smr'); $query->where('smr.id_stock_mvt_reason = '.(int)$id_stock_mvt_reason); $query->where('smr.deleted = 0'); + return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); } }