Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-31 17:55:31 +02:00
parent 7973489f8a
commit 9e880d3e72
5 changed files with 37 additions and 13 deletions

View File

@ -34,17 +34,17 @@ class ActionCommReminder extends CommonObject
* @var string ID to identify managed object
*/
public $element = 'actioncomm_reminder';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element = 'actioncomm_reminder';
/**
* @var array Does actioncommreminder support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
*/
public $ismultientitymanaged = 0;
/**
* @var string String with name of icon for actioncommreminder. Must be the part after the 'object_' into object_actioncommreminder.png
*/
@ -84,7 +84,12 @@ class ActionCommReminder extends CommonObject
public $rowid;
public $dateremind;
public $typeremind;
/**
* @var int User ID
*/
public $fk_user;
public $offsetvalue;
public $offsetunit;
public $status;

View File

@ -44,19 +44,24 @@ class PaymentSalary extends CommonObject
public $picto='payment';
public $tms;
/**
* @var int User ID
*/
public $fk_user;
public $datep;
public $datev;
public $amount;
public $fk_project;
public $type_payment;
public $num_payment;
/**
* @var string proper name for given parameter
*/
public $label;
* @var string proper name for given parameter
*/
public $label;
public $datesp;
public $dateep;
public $fk_bank;

View File

@ -32,7 +32,7 @@ class DiscountAbsolute
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
*/
@ -45,7 +45,12 @@ class DiscountAbsolute
public $amount_tva; //
public $amount_ttc; //
public $tva_tx; // Vat rate
public $fk_user; // Id utilisateur qui accorde la remise
/**
* @var int User ID Id utilisateur qui accorde la remise
*/
public $fk_user;
public $description; // Description libre
public $datec; // Date creation
public $fk_facture_line; // Id invoice line when a discount is used into an invoice line (for absolute discounts)

View File

@ -67,7 +67,12 @@ class CommandeFournisseurDispatch extends CommonObject
public $fk_commandefourndet;
public $qty;
public $fk_entrepot;
/**
* @var int User ID
*/
public $fk_user;
public $datec='';
public $comment;
public $status;

View File

@ -44,12 +44,12 @@ class User extends CommonObject
* @var string ID to identify managed object
*/
public $element='user';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='user';
public $fk_element='fk_user';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
@ -103,6 +103,10 @@ class User extends CommonObject
public $contactid;
public $fk_member;
/**
* @var int User ID
*/
public $fk_user;
public $clicktodial_url;
@ -1541,7 +1545,7 @@ class User extends CommonObject
$adh->zip=$this->zip;
$adh->state_id=$this->state_id;
$adh->country_id=$this->country_id;
$adh->email=$this->email;
$adh->skype=$this->skype;
$adh->phone=$this->office_phone;