Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-31 18:06:17 +02:00
parent 9e880d3e72
commit 2f307aae21
4 changed files with 35 additions and 12 deletions

View File

@ -32,12 +32,12 @@ class Bookmark extends CommonObject
* @var string ID to identify managed object
*/
public $element='bookmark';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='bookmark';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'bookmark';
@ -50,8 +50,12 @@ class Bookmark extends CommonObject
* @var int ID
*/
public $id;
var $fk_user;
/**
* @var int User ID
*/
public $fk_user;
var $datec;
var $url;
var $target; // 0=replace, 1=new window

View File

@ -35,12 +35,12 @@ class Deplacement extends CommonObject
* @var string ID to identify managed object
*/
public $element='deplacement';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='deplacement';
public $table_element_line = '';
public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
@ -48,7 +48,12 @@ class Deplacement extends CommonObject
var $datec; // Creation date
var $dated;
var $fk_user_author;
var $fk_user;
/**
* @var int User ID
*/
public $fk_user;
var $km;
var $socid;
var $statut; // 0=draft, 1=validated

View File

@ -36,12 +36,12 @@ class Holiday extends CommonObject
* @var string ID to identify managed object
*/
public $element='holiday';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='holiday';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $fk_element = 'fk_holiday';
public $picto = 'holiday';
@ -52,7 +52,11 @@ class Holiday extends CommonObject
*/
var $rowid;
var $fk_user;
/**
* @var int User ID
*/
public $fk_user;
var $date_create='';
var $description;
var $date_debut=''; // Date start in PHP server TZ

View File

@ -54,7 +54,12 @@ class Productcustomerprice extends CommonObject
var $localtax1_tx;
var $localtax2_type;
var $localtax2_tx;
var $fk_user;
/**
* @var int User ID
*/
public $fk_user;
var $lines = array ();
/**
@ -978,7 +983,12 @@ class PriceByCustomerLine
var $recuperableonly;
var $localtax1_tx;
var $localtax2_tx;
var $fk_user;
/**
* @var int User ID
*/
public $fk_user;
var $import_key;
var $socname;
var $prodref;