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 * @var string ID to identify managed object
*/ */
public $element = 'actioncomm_reminder'; public $element = 'actioncomm_reminder';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */
public $table_element = 'actioncomm_reminder'; 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 * @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; public $ismultientitymanaged = 0;
/** /**
* @var string String with name of icon for actioncommreminder. Must be the part after the 'object_' into object_actioncommreminder.png * @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 $rowid;
public $dateremind; public $dateremind;
public $typeremind; public $typeremind;
/**
* @var int User ID
*/
public $fk_user; public $fk_user;
public $offsetvalue; public $offsetvalue;
public $offsetunit; public $offsetunit;
public $status; public $status;

View File

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

View File

@ -32,7 +32,7 @@ class DiscountAbsolute
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
@ -45,7 +45,12 @@ class DiscountAbsolute
public $amount_tva; // public $amount_tva; //
public $amount_ttc; // public $amount_ttc; //
public $tva_tx; // Vat rate 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 $description; // Description libre
public $datec; // Date creation public $datec; // Date creation
public $fk_facture_line; // Id invoice line when a discount is used into an invoice line (for absolute discounts) 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 $fk_commandefourndet;
public $qty; public $qty;
public $fk_entrepot; public $fk_entrepot;
/**
* @var int User ID
*/
public $fk_user; public $fk_user;
public $datec=''; public $datec='';
public $comment; public $comment;
public $status; public $status;

View File

@ -44,12 +44,12 @@ class User extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='user'; public $element='user';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */
public $table_element='user'; public $table_element='user';
public $fk_element='fk_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 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 $contactid;
public $fk_member; public $fk_member;
/**
* @var int User ID
*/
public $fk_user; public $fk_user;
public $clicktodial_url; public $clicktodial_url;
@ -1541,7 +1545,7 @@ class User extends CommonObject
$adh->zip=$this->zip; $adh->zip=$this->zip;
$adh->state_id=$this->state_id; $adh->state_id=$this->state_id;
$adh->country_id=$this->country_id; $adh->country_id=$this->country_id;
$adh->email=$this->email; $adh->email=$this->email;
$adh->skype=$this->skype; $adh->skype=$this->skype;
$adh->phone=$this->office_phone; $adh->phone=$this->office_phone;