From 357173f0ef55f34e4248ef964cd92fe7a00e8116 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Fri, 12 Oct 2018 09:30:53 +0200 Subject: [PATCH] Standardize and update code --- .../price_global_variable_updater.class.php | 5 +++++ .../product/inventory/class/inventory.class.php | 17 +++++++++++++++++ htdocs/product/stock/class/entrepot.class.php | 4 ++++ .../stock/class/mouvementstock.class.php | 8 ++++++++ htdocs/product/stock/class/productlot.class.php | 13 +++++++++++++ .../stock/class/productstockentrepot.class.php | 9 +++++++++ 6 files changed, 56 insertions(+) diff --git a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php index b06a249ccc6..c4dda3481bb 100644 --- a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php +++ b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php @@ -60,7 +60,12 @@ class PriceGlobalVariableUpdater public $description; public $parameters; + + /** + * @var int ID + */ public $fk_variable; + public $update_interval; //!< Interval in mins public $next_update; //!< Next update timestamp public $last_status; diff --git a/htdocs/product/inventory/class/inventory.class.php b/htdocs/product/inventory/class/inventory.class.php index e1be589ac88..39df52a8208 100644 --- a/htdocs/product/inventory/class/inventory.class.php +++ b/htdocs/product/inventory/class/inventory.class.php @@ -114,7 +114,11 @@ class Inventory extends CommonObject */ public $entity; + /** + * @var int ID + */ public $fk_warehouse; + public $date_inventory; public $title; @@ -126,9 +130,22 @@ class Inventory extends CommonObject public $date_creation; public $date_validation; public $tms; + + /** + * @var int ID + */ public $fk_user_creat; + + /** + * @var int ID + */ public $fk_user_modif; + + /** + * @var int ID + */ public $fk_user_valid; + public $import_key; // END MODULEBUILDER PROPERTIES diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 575aa2a705d..b2a78a9cd3e 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -78,6 +78,10 @@ class Entrepot extends CommonObject //! Code Postal public $zip; public $town; + + /** + * @var int ID + */ public $fk_parent; // List of short language codes for status diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 0d8338c4d9f..f5fad015636 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -49,6 +49,10 @@ class MouvementStock extends CommonObject public $tms = ''; public $datem = ''; public $price; + + /** + * @var int ID + */ public $fk_user_author; /** @@ -56,7 +60,11 @@ class MouvementStock extends CommonObject */ public $label; + /** + * @var int ID + */ public $fk_origin; + public $origintype; public $inventorycode; public $batch; diff --git a/htdocs/product/stock/class/productlot.class.php b/htdocs/product/stock/class/productlot.class.php index d7b77cd83ee..1530e068856 100644 --- a/htdocs/product/stock/class/productlot.class.php +++ b/htdocs/product/stock/class/productlot.class.php @@ -63,14 +63,27 @@ class Productlot extends CommonObject */ public $entity; + /** + * @var int ID + */ public $fk_product; + public $batch; public $eatby = ''; public $sellby = ''; public $datec = ''; public $tms = ''; + + /** + * @var int ID + */ public $fk_user_creat; + + /** + * @var int ID + */ public $fk_user_modif; + public $import_key; diff --git a/htdocs/product/stock/class/productstockentrepot.class.php b/htdocs/product/stock/class/productstockentrepot.class.php index 1ab24b553d8..6b12af88c7a 100644 --- a/htdocs/product/stock/class/productstockentrepot.class.php +++ b/htdocs/product/stock/class/productstockentrepot.class.php @@ -51,8 +51,17 @@ class ProductStockEntrepot extends CommonObject public $table_element = 'product_warehouse_properties'; public $tms = ''; + + /** + * @var int ID + */ public $fk_product; + + /** + * @var int ID + */ public $fk_entrepot; + public $seuil_stock_alerte; public $desiredstock; public $import_key;