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'; public $table_element='accounting_journal';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = ''; public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'generic'; public $picto = 'generic';

View File

@ -56,7 +56,12 @@ class Propal extends CommonObject
public $table_element='propal'; public $table_element='propal';
public $table_element_line='propaldet'; 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'; public $picto='propal';
/** /**

View File

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

View File

@ -50,7 +50,12 @@ class FactureRec extends CommonInvoice
public $table_element='facture_rec'; public $table_element='facture_rec';
public $table_element_line='facturedet_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 $fk_element='fk_facture';
public $picto='bill'; public $picto='bill';
var $entity; var $entity;

View File

@ -64,7 +64,12 @@ class Facture extends CommonInvoice
public $table_element='facture'; public $table_element='facture';
public $table_element_line = 'facturedet'; 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 $fk_element = 'fk_facture';
public $picto='bill'; public $picto='bill';
/** /**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe

View File

@ -52,7 +52,12 @@ class Contrat extends CommonObject
public $table_element='contrat'; public $table_element='contrat';
public $table_element_line='contratdet'; 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 $fk_element='fk_contrat';
public $picto='contract'; public $picto='contract';
/** /**

View File

@ -31,7 +31,11 @@ class Comment extends CommonObject
*/ */
public $table_element='comment'; 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; public $element_type;
/** /**

View File

@ -39,24 +39,29 @@ class Fiscalyear extends CommonObject
public $table_element='accounting_fiscalyear'; public $table_element='accounting_fiscalyear';
public $table_element_line = ''; public $table_element_line = '';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = ''; public $fk_element = '';
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
var $rowid; public $rowid;
/** /**
* @var string fiscal year label * @var string fiscal year label
*/ */
public $label; public $label;
var $date_start; public $date_start;
var $date_end; public $date_end;
var $datec; public $datec;
var $statut; // 0=open, 1=closed public $statut; // 0=open, 1=closed
var $entity; public $entity;
var $statuts=array(); public $statuts=array();
var $statuts_short=array(); public $statuts_short=array();
/** /**
* Constructor * Constructor

View File

@ -44,32 +44,36 @@ class Don extends CommonObject
*/ */
public $table_element='don'; public $table_element='don';
/**
* @var int Field with ID of parent key if this field has a parent
*/
public $fk_element = 'fk_donation'; public $fk_element = 'fk_donation';
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
var $picto = 'generic'; public $picto = 'generic';
var $date; public $date;
var $amount; public $amount;
var $societe; public $societe;
var $address; public $address;
var $zip; public $zip;
var $town; public $town;
var $email; public $email;
var $public; public $public;
var $fk_project; public $fk_project;
var $fk_typepayment; public $fk_typepayment;
var $num_payment; public $num_payment;
var $date_valid; public $date_valid;
var $modepaymentid = 0; public $modepaymentid = 0;
var $labelstatut; public $labelstatut;
var $labelstatutshort; public $labelstatutshort;
/** /**
* @deprecated * @deprecated
* @see note_private, note_public * @see note_private, note_public
*/ */
var $commentaire; public $commentaire;
/** /**