Standardize and Update code

This commit is contained in:
Philippe GRAND 2018-09-01 23:04:46 +02:00
parent 7b0d3c32ab
commit ae2df6be11
13 changed files with 72 additions and 41 deletions

View File

@ -65,8 +65,7 @@ class BookKeeping extends CommonObject
* @var int ID
*/
public $id;
/**
*/
public $doc_date;
public $date_lim_reglement;
public $doc_type;
@ -1865,7 +1864,11 @@ class BookKeeping extends CommonObject
*/
class BookKeepingLine
{
/**
* @var int ID
*/
public $id;
public $doc_date = '';
public $doc_type;
public $doc_ref;

View File

@ -39,6 +39,7 @@ class BlockedLog
* @var int
*/
public $id;
/**
* Entity
* @var int
@ -46,7 +47,7 @@ class BlockedLog
public $entity;
public $error = '';
/**
* @var string[] Error codes (or messages)
*/

View File

@ -37,7 +37,12 @@ class Facturation
* int $prix => Prix HT du produit en cours
* int $tva => 'rowid' du taux de tva dans llx_c_tva
*/
public $id;
/**
* @var int ID
*/
public $id;
protected $ref;
protected $qte;
protected $stock;

View File

@ -43,20 +43,20 @@ class CActionComm
*/
public $id;
var $code;
var $type;
var $libelle; // deprecated
public $code;
public $type;
public $libelle; // deprecated
/**
* @var string Type of agenda event label
*/
public $label;
var $active;
var $color;
var $picto;
public $active;
public $color;
public $picto;
var $type_actions=array();
public $type_actions=array();
/**

View File

@ -32,7 +32,10 @@ class BankCateg // extends CommonObject
//public $table_element='bank_categ'; //!< Name of table without prefix where object is stored
public $picto='generic';
public $id;
/**
* @var int ID
*/
public $id;
/**
* @var string bank categories label

View File

@ -32,7 +32,7 @@ class PaymentTerm // extends CommonObject
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
*/
@ -42,24 +42,24 @@ class PaymentTerm // extends CommonObject
* @var string[] Error codes (or messages)
*/
public $errors = array();
//public $element='c_payment_term'; //!< Id that identify managed objects
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
var $context =array();
public $context =array();
/**
* @var int ID
*/
public $id;
var $code;
var $sortorder;
var $active;
var $libelle;
var $libelle_facture;
var $type_cdr;
var $nbjour;
var $decalage;
public $code;
public $sortorder;
public $active;
public $libelle;
public $libelle_facture;
public $type_cdr;
public $nbjour;
public $decalage;

View File

@ -55,15 +55,15 @@ class Ccountry // extends CommonObject
*/
public $id;
var $code;
var $code_iso;
public $code;
public $code_iso;
/**
* @var string Countries label
*/
public $label;
var $active;
public $active;

View File

@ -36,7 +36,7 @@ class Cstate // extends CommonObject
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
*/
@ -46,7 +46,7 @@ class Cstate // extends CommonObject
* @var string[] Error codes (or messages)
*/
public $errors = array();
//var $element='cstate'; //!< Id that identify managed objects
//var $table_element='cstate'; //!< Name of table without prefix where object is stored
@ -54,10 +54,10 @@ class Cstate // extends CommonObject
* @var int ID
*/
public $id;
var $code_departement;
var $nom;
var $active;
public $code_departement;
public $nom;
public $active;

View File

@ -31,7 +31,7 @@ class Ctypent // extends CommonObject
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
*/
@ -41,7 +41,7 @@ class Ctypent // extends CommonObject
* @var string[] Error codes (or messages)
*/
public $errors = array();
//var $element='ctypent'; //!< Id that identify managed objects
//var $table_element='ctypent'; //!< Name of table without prefix where object is stored
@ -49,11 +49,11 @@ class Ctypent // extends CommonObject
* @var int ID
*/
public $id;
var $code;
var $libelle;
var $active;
var $module;
public $code;
public $libelle;
public $active;
public $module;

View File

@ -43,7 +43,11 @@ class DiscountAbsolute
*/
public $errors=array();
public $id; // Id discount
/**
* @var int ID discount
*/
public $id;
public $fk_soc;
public $discount_type; // 0 => customer discount, 1 => supplier discount
public $amount_ht; //

View File

@ -1402,6 +1402,9 @@ class FormMail extends Form
*/
class ModelMail
{
/**
* @var int ID
*/
public $id;
/**

View File

@ -43,7 +43,10 @@ class Menubase
*/
public $errors = array();
public $id;
/**
* @var int ID
*/
public $id;
public $menu_handler;
public $module;

View File

@ -34,8 +34,14 @@ class Stripe extends CommonObject
public $rowid;
public $fk_soc;
public $fk_key;
/**
* @var int ID
*/
public $id;
public $mode;
/**
@ -44,8 +50,11 @@ class Stripe extends CommonObject
public $entity;
public $statut;
public $type;
public $code;
public $message;
/**