Standardize and update code

This commit is contained in:
Philippe GRAND 2018-09-01 15:13:59 +02:00
parent c013f9cf3d
commit f77dd2ebc7
10 changed files with 82 additions and 35 deletions

View File

@ -36,7 +36,11 @@ class AccountingJournal extends CommonObject
*/
public $table_element='accounting_journal';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'generic';

View File

@ -56,7 +56,12 @@ class Propal extends CommonObject
public $table_element='propal';
public $table_element_line='propaldet';
public $fk_element='fk_propal';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element ='fk_propal';
public $picto='propal';
/**

View File

@ -54,7 +54,12 @@ class Commande extends CommonOrder
public $table_element_line = 'commandedet';
public $class_element_line = 'OrderLine';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = 'fk_commande';
public $picto = 'order';
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe

View File

@ -42,7 +42,12 @@ class Deplacement extends CommonObject
public $table_element='deplacement';
public $table_element_line = '';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $datec; // Creation date

View File

@ -43,14 +43,19 @@ class FactureRec extends CommonInvoice
* @var string ID to identify managed object
*/
public $element='facturerec';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='facture_rec';
public $table_element_line='facturedet_rec';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element='fk_facture';
public $picto='bill';
var $entity;
@ -1651,7 +1656,7 @@ class FactureLigneRec extends CommonInvoiceLine
* @var string ID to identify managed object
*/
public $element='facturedetrec';
/**
* @var string Name of table without prefix where object is stored
*/

View File

@ -57,14 +57,19 @@ class Facture extends CommonInvoice
* @var string ID to identify managed object
*/
public $element='facture';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='facture';
public $table_element_line = 'facturedet';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = 'fk_facture';
public $picto='bill';
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
@ -4242,7 +4247,7 @@ class FactureLigne extends CommonInvoiceLine
* @var string ID to identify managed object
*/
public $element='facturedet';
/**
* @var string Name of table without prefix where object is stored
*/

View File

@ -52,7 +52,12 @@ class Contrat extends CommonObject
public $table_element='contrat';
public $table_element_line='contratdet';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element='fk_contrat';
public $picto='contract';
/**

View File

@ -31,7 +31,11 @@ class Comment extends CommonObject
*/
public $table_element='comment';
public $fk_element;
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element ='';
public $element_type;
/**

View File

@ -39,24 +39,29 @@ class Fiscalyear extends CommonObject
public $table_element='accounting_fiscalyear';
public $table_element_line = '';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = '';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $rowid;
public $rowid;
/**
* @var string fiscal year label
*/
public $label;
var $date_start;
var $date_end;
var $datec;
var $statut; // 0=open, 1=closed
var $entity;
public $date_start;
public $date_end;
public $datec;
public $statut; // 0=open, 1=closed
public $entity;
var $statuts=array();
var $statuts_short=array();
public $statuts=array();
public $statuts_short=array();
/**
* Constructor

View File

@ -38,38 +38,42 @@ class Don extends CommonObject
* @var string ID to identify managed object
*/
public $element='don';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='don';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = 'fk_donation';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $picto = 'generic';
public $picto = 'generic';
var $date;
var $amount;
var $societe;
var $address;
var $zip;
var $town;
var $email;
var $public;
var $fk_project;
var $fk_typepayment;
var $num_payment;
var $date_valid;
var $modepaymentid = 0;
public $date;
public $amount;
public $societe;
public $address;
public $zip;
public $town;
public $email;
public $public;
public $fk_project;
public $fk_typepayment;
public $num_payment;
public $date_valid;
public $modepaymentid = 0;
var $labelstatut;
var $labelstatutshort;
public $labelstatut;
public $labelstatutshort;
/**
* @deprecated
* @see note_private, note_public
*/
var $commentaire;
public $commentaire;
/**