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 * @var int ID
*/ */
public $id; public $id;
/**
*/
public $doc_date; public $doc_date;
public $date_lim_reglement; public $date_lim_reglement;
public $doc_type; public $doc_type;
@ -1865,7 +1864,11 @@ class BookKeeping extends CommonObject
*/ */
class BookKeepingLine class BookKeepingLine
{ {
/**
* @var int ID
*/
public $id; public $id;
public $doc_date = ''; public $doc_date = '';
public $doc_type; public $doc_type;
public $doc_ref; public $doc_ref;

View File

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

View File

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

View File

@ -43,20 +43,20 @@ class CActionComm
*/ */
public $id; public $id;
var $code; public $code;
var $type; public $type;
var $libelle; // deprecated public $libelle; // deprecated
/** /**
* @var string Type of agenda event label * @var string Type of agenda event label
*/ */
public $label; public $label;
var $active; public $active;
var $color; public $color;
var $picto; 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 $table_element='bank_categ'; //!< Name of table without prefix where object is stored
public $picto='generic'; public $picto='generic';
public $id; /**
* @var int ID
*/
public $id;
/** /**
* @var string bank categories label * @var string bank categories label

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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