From 142f93e50cb72f9e27929fd124eca8e8df025bac Mon Sep 17 00:00:00 2001 From: Gauthier PC portable 024 Date: Fri, 30 Jul 2021 15:35:31 +0200 Subject: [PATCH] FIX : functions visibility --- htdocs/core/modules/modStockTransfer.class.php | 2 +- htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php | 2 +- .../product/stock/stocktransfer/class/stocktransfer.class.php | 4 ++-- .../stock/stocktransfer/class/stocktransferline.class.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/core/modules/modStockTransfer.class.php b/htdocs/core/modules/modStockTransfer.class.php index c528f22b175..86dc451cfac 100644 --- a/htdocs/core/modules/modStockTransfer.class.php +++ b/htdocs/core/modules/modStockTransfer.class.php @@ -504,7 +504,7 @@ class modStockTransfer extends DolibarrModules * Returns next available id to insert new roles in llx_c_type_contact * @return int > 0 if OK, < 0 if KO */ - function getNextId() + public function getNextId() { global $db; diff --git a/htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php b/htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php index 3f59e08bc80..a5245b3bff5 100644 --- a/htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php +++ b/htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php @@ -830,7 +830,7 @@ class pdf_eagle extends ModelePdfStockTransfer * @param $object Stock Transfer object * @return bool true if at least one line has batch set, false if not */ - function atLeastOneBatch($object) + public function atLeastOneBatch($object) { $atLeastOneBatch = false; diff --git a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php index 95c4f31b08a..b6ccf3f9d8b 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php @@ -354,7 +354,7 @@ class StockTransfer extends CommonObject * @param $b 1st element to test * @return int */ - function cmp($a, $b) + public function cmp($a, $b) { if ($a->rang == $b->rang) { return 0; @@ -367,7 +367,7 @@ class StockTransfer extends CommonObject * * @return float total amount of Stock Transfer */ - function getValorisationTotale() + public function getValorisationTotale() { $total_pmp = 0; diff --git a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php index 962186b5a13..8a7432c4317 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php @@ -443,7 +443,7 @@ class StockTransferLine extends CommonObject * @param int $direction add or remove qty * @return int 1 if ok, <= 0 if ko */ - function doStockMovement($label, $fk_entrepot, $direction = 1) + public function doStockMovement($label, $fk_entrepot, $direction = 1) { global $db, $conf, $user, $langs;